Yes, I think so. Such like Acer aspireone D250, we could get HAL info for
screen brightness, and folder /sys/class/backlight/acpi_video0 exists too.
While unable to modify it.
/sys/class/backlight/acpi_video0
============================
[r...@localhost acpi_video0]# ls
actual_brightness bl_power brightness max_brightness power subsystem
uevent
[r...@localhost acpi_video0]# cat actual_brightness brightness max_brightness
bl_power
10
10
10
0
I wonder if we could simulate functional keypress to do workaround, I found
related info in lshal log. (for device
platform_i8042_i8042_KBD_port_logicaldev_input', there are 'e059:brightnessup',
'e06e:brightnessup', 'e04e:brightnessup', 'e06f:brightnessdown')
Lshal log (for backlight)
===================
udi =
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
info.addons.singleton = {'hald-addon-input'} (string list)
info.callouts.add = {'hal-setup-keymap'} (string list)
info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys',
'input.keymap', 'button'} (string list)
info.category = 'input' (string)
info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'
(string)
info.product = 'AT Translated Set 2 keyboard' (string)
info.subsystem = 'input' (string)
info.udi =
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
(string)
input.device = '/dev/input/event5' (string)
input.keymap.data = {'e025:help', 'e026:setup', 'e027:battery',
'e029:switchvideomode', 'e033:euro', 'e034:dollar', 'e054:bluetooth',
'e055:wlan', 'e056:wlan', 'e057:bluetooth', 'e058:bluetooth',
'e059:brightnessup', 'e06e:brightnessup', 'e04e:brightnessup',
'e06f:brightnessdown', 'e071:f22', 'e072:f22', 'e073:prog2', 'e074:prog1',
'e075:presentation', 'e078:fn', 'e079:f23'} (string list)
input.originating_device =
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port' (string)
input.product = 'AT Translated Set 2 keyboard' (string)
input.x11_driver = 'evdev' (string)
input.xkb.layout = 'us' (string)
input.xkb.model = 'evdev' (string)
input.xkb.rules = 'evdev' (string)
input.xkb.variant = '' (string)
linux.device_file = '/dev/input/event5' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'input' (string)
linux.sysfs_path = '/sys/devices/platform/i8042/serio0/input/input5/event5'
(string)
udi = '/org/freedesktop/Hal/devices/computer_backlight'
info.addons = {'hald-addon-generic-backlight'} (string list)
info.capabilities = {'laptop_panel'} (string list)
info.category = 'laptop_panel' (string)
info.interfaces = {'org.freedesktop.Hal.Device.LaptopPanel'} (string list)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'Generic Backlight Device' (string)
info.subsystem = 'backlight' (string)
info.udi = '/org/freedesktop/Hal/devices/computer_backlight' (string)
laptop_panel.access_method = 'general' (string)
laptop_panel.brightness_in_hardware = true (bool)
laptop_panel.num_levels = 11 (0xb) (int)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'backlight' (string)
linux.sysfs_path = '/sys/devices/virtual/backlight/acpi_video0' (string)
Hao
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Deng,
Ying An
Sent: 2009年6月5日 15:28
To: Wang, Jing J; [email protected]
Subject: Re: [Moblin Dev] Inconsistent result of Screen brightness adjust by
Hotkeys and Moblin Brightness Setting
Hi,
For some models, the brightness is adjusted by SMI handler rather than driver
in OS, which is out of the control by software inside OS.
Best Regards,
DengYingAn
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Wang,
Jing J
Sent: Friday, June 05, 2009 3:17 PM
To: [email protected]
Subject: [Moblin Dev] Inconsistent result of Screen brightness adjust by
Hotkeys and Moblin Brightness Setting
Folks,
I notice for some netbook models, adjust screen brightness show
inconsistent result between Moblin setting and Hotkeys. For example, in Moblin
brightness setting, the dialog tell me "Sorry, we don's support modifying the
brightness of your screen", but by Hotkeys, the brightness adjust is workable.
So I checked the HAL info in such kind of netbook, there is no any info about
backlight. Moreover, /sys/class/backlight folder is empty. Given that, I am
curious that how hotkey achieve Brightness adjust, is there another way?
Thanks
WangJing
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on
http://moblin.org once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on
http://moblin.org once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on
http://moblin.org once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists