Meego Wiki
Views

AddVolumeControlSupport

From MeeGo wiki
Jump to: navigation, search

Add support for hardware volume control keys. Needed at least with SDL. (At least on Meego Harmattan N950 / libsdl1.2_1.2.14-0maemo5 ) Read more: http://forum.meego.com/showthread.php?t=3925

(You are working with PACKAGENAME)

Create file: PACKAGENAME.conf with content

[classify gaming]
/path/to/binary


Add that file to the package (e.g. debian/rules)

install -d ${CURDIR}/debian/PACKAGENAME/usr/share/policy/etc/syspart.conf.d/
install ${CURDIR}/PACKAGENAME.conf ${CURDIR}/debian/PACKAGENAME/usr/share/policy/etc/syspart.conf.d/

Start your application (i.e. next after int main())

setenv("PULSE_PROP_media.role", "x-maemo", 1);
Personal tools