How to get function key brightness keybinding to work
#1
Been running XBMCbuntu on my Samsung N130 (lubuntu 12.04 version) and couldn't get the backlight to change... found a workaround

Code:
sudo apt-get install xbacklight

Open terminal and make sure you are at $home
Code:
cd .config/openbox
sudo gedit xbmcuntu-rc.xml

Find the last <keybind> entry and add below it

Code:
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
        <command>xbacklight +15</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessDown">
<action name="Execute">
        <command>xbacklight -15</command>
</action>
</keybind>

Save it.. log off and log back on..
It should bind your function brightness Up and Down keys on any XF86 keyboard

Edit: This only works when logged into XBMCbuntu... If you log into XBMC then you get the error Cannot open display "" for some reason...
Reply
#2
I didn't know about xbacklight, I've always created my own script to control /sys/class/backlight/foo Smile

Anyway I tried xbacklight, and my own script. xbmc always crashes when I try to change the brightness.

shell output:
Code:
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
Assertion 'pa_atomic_load(&(b)->_ref) > 0' failed at pulsecore/memblock.c:590, function pa_memblock_unref(). Aborting.
Aborted (core dumped)

Crash report available at ...

Then I tried to change audio to alsa and then I get:
Code:
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
xbmc.bin: ../../src/xcb_io.c:735: _XRead: Assertion `!xcb_xlib_too_much_data_requested' failed.
Aborted (core dumped)
Crash report available at ...

So it looks like the memory addresses get totally messed up or something? The strange thing is that if I switch to text mode with ctrl-alt-fx I can set the brightness there with my script, then go back to xbmc.

I can upload the logs somewhere too if needed, looks like there's no way to attach?

EDIT:
system specs:
- Ubuntu 12.10 64bit
- Toshiba Satellite L5500
Reply

Logout Mark Read Team Forum Stats Members Help
How to get function key brightness keybinding to work0