You are not logged in.

#1 2010-10-22 06:13:27

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

XFCE4 and increase/decrease backlight

Hi,
Have just installed archlinux on my samsung nc10 netbook.
Running xfce4 and need some help on how to get the Fn + the increase/decrease key to work.

Last edited by ftornell (2010-10-22 08:27:04)


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#2 2010-10-22 06:35:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: XFCE4 and increase/decrease backlight

Are you running HAL?
Is there a file on your system like /class/backlight/acpi_video0/brightness  ??

Last edited by ewaller (2010-10-22 06:35:41)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-10-22 06:40:47

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

Re: XFCE4 and increase/decrease backlight

Hi, there are no file (no folder at all called /class)

Yes, im running hal


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#4 2010-10-22 07:12:04

txus
Member
Registered: 2008-01-23
Posts: 78

Re: XFCE4 and increase/decrease backlight

It's in /sys/class/....
But I have that file too, and still I have to use custom acpi scripts.

Offline

#5 2010-10-22 07:58:16

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

Re: XFCE4 and increase/decrease backlight

now I found the backlight folder but its empty...


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#6 2010-10-22 15:26:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: XFCE4 and increase/decrease backlight

Can you dig through the output of lshal and see if you have a section pertaining to the backlight?  It will look something like this

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)

Also, lets look in the older /proc file system for a handle.  What is the output of

sudo find /proc -name brightness -print

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2010-10-26 07:57:07

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

Re: XFCE4 and increase/decrease backlight

Hi,
lshal did'nt display any backlight information at all...


find /proc -name brightness -print
/proc/acpi/video/GFX0/DD05/brightness
/proc/acpi/video/GFX0/DD04/brightness
/proc/acpi/video/GFX0/DD03/brightness
/proc/acpi/video/GFX0/DD02/brightness
/proc/acpi/video/GFX0/DD01/brightness

[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#8 2010-10-26 14:57:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: XFCE4 and increase/decrease backlight

Okay, try 'cat'ing each of those files.

On my system, it looks like this:

ewaller@odin:~[1] 1002 %cat /proc/acpi/video/OVGA/DD0*/brightness
<not supported>
<not supported>
levels:  0 10 20 30 40 50 60 70 80 90 100
current: 0
<not supported>
<not supported>
ewaller@odin:~ 1003 %

Note that my card video is OVGA, whereas yours is GFX0.
On my system the interesting one is DD03.
I can set my brightness to (for example) 50% by:
echo 50 > /proc/acpi/video/OVGA/brightness

If you any of your brightness files are 'interesting' and allow you to change the brightness, then we will be able to bind the function keys to an app that will change the settings.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB