Comment 10 for bug 146710

Revision history for this message
Yvan Fournier (yvan-fournier) wrote :

Same problem on a Samsung Q45 with nVidia 8400, Ubuntu 8.04 LTS.

The hotkeys do not seem to generate ACPI events, but regular keycodes.
I tried setting keycodes (after sourcing . /usr/share/hotkey-setup/key-constants) in
/etc/rc.local):

setkeycodes e002 $KEY_VIDEOOUT # Fn-F4 External VGA toggle
setkeycodes e004 $KEY_LIGHT # Fn-F5 Backlight toggle
setkeycodes e008 $KEY_BRIGHTNESSUP # Fn--> LCD Brightness up
setkeycodes e009 $KEY_BRIGHTNESSDOWN # Fn--> LCD Brightness down

When I run "lshal -m", I see that the keycodes are correctly mapped, but the hotkeys still do nothing.

Also, switching from battery to power does not seem to change my screen brightness, and the Gnome brightness applet does not work either.

I have the same problems whether using the nVidia or Xorg driver, so I would suspect problems with the ACPI configuration:

"cat /proc/acpi/video/NVID/LCD/brightness" outputs
levels: 10 30 40 50 60 70 80 100
current: 0

"cat /proc/acpi/video/NVID/LCD/state" outputs
state: 0x1f
query: 0x00

"sudo echo 10 > /proc/acpi/video/NVID/LCD/brightness" gives me a "permission denied" error, even though the proc file seems writable for root, and adding "xhost +" (just in case) does not seem to change a thing.

I did not find any Samsung-ACPI module, so I wonder if the generic ACPI handling works for this machine.