amilo-forum.com

Everything you need to know about Amilo and Lifebook laptops by Fujitsu

[SOLVED] Li1705 Kubuntu 7.10: de-/increase brightness ... Topic is solved

Everything around Linux and Unix-like operating systems.

[SOLVED] Li1705 Kubuntu 7.10: de-/increase brightness ...  Topic is solved

Postby bobribbon » Tue Jan 08, 2008 9:28 am

XOrg doesn't seem to recongnize the LCD brightness hotkeys (Fn+ F7 and Fn+ F8).

Any tips on how to solve this?

EDIT:
xev doesn't recognize the key!
Last edited by bobribbon on Sat Jan 19, 2008 10:26 am, edited 1 time in total.
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby mikerobertson_uk » Wed Jan 09, 2008 2:57 pm

hi did you get to run ok? i tried this afternoon and all goes fine then the screen goes!!
mikerobertson_uk
 
Posts: 12
Joined: Wed Oct 24, 2007 2:35 pm

Postby bobribbon » Thu Jan 10, 2008 1:42 pm

By "then the screen goes" you mean it turns black?
If so, try different video drivers (vesa, or after you installed openchrome, openchrome) with XOrg.
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby mikerobertson_uk » Thu Jan 10, 2008 8:59 pm

sorry to sound thick but how do i put the other drivers on it i can only see a blank screen
mikerobertson_uk
 
Posts: 12
Joined: Wed Oct 24, 2007 2:35 pm

Postby bobribbon » Fri Jan 11, 2008 10:26 am

You don't need to apologize! :-)
I assume you have a live internet connection.

For some reason phpBB won't let me use slashes so I wrote backslashes. When you type use slashes instead! :?:

Code: Select all
sudo apt-get install xserver-xorg-video openchrome
vi \etc\X11\xorg.conf


find where it says
Code: Select all
Section "Device"

change
Code: Select all
Driver "vesa"

to
Code: Select all
Driver "openchrome"


save the file (hit ':' 'w' 'enter') and quit (hit ':' 'q' 'enter') and give it a try...

Code: Select all
startx
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby mikerobertson_uk » Fri Jan 11, 2008 10:22 pm

hi i cant see where i have to put these command line into.heres what i do i put in the live cd to install it to see if it works i as i dont want to ditch vista and be left with nothing until i know i can get it up and running so can you give me a complete idiots guide starting from putting in the live cd please.

many thank in advance
mike
mikerobertson_uk
 
Posts: 12
Joined: Wed Oct 24, 2007 2:35 pm

Postby bobribbon » Sat Jan 19, 2008 6:59 am

I'm not sure if these settings will work on a LiveCD, sorry...
You can however try - open a console and give it a go!
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby bobribbon » Sat Jan 19, 2008 10:24 am

I finally solved it.
It turned out that the keys actually *did* respond but the command (\etc\acpi\video_brightnessup.sh) didn't do anything!
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby Stevie » Sun Jan 20, 2008 7:34 pm

how did u find out that they work?
cos i have the same problem...but im using a xa1526.
the keys dont show any code in xev, so i cant be sure if they work.
could you tell me how u did find out that the keys work?

best,

stevie
Stevie
 
Posts: 6
Joined: Sat Mar 25, 2006 3:31 pm
Notebook:
  • XA 1526

Postby bobribbon » Sun Jan 20, 2008 7:41 pm

Hi Stevie, in my case...

\proc\acpi\video\VGA\LCD contains a file called 'brightness'
If I echo values to that file as root the LCD responds (i.e. echo -n "1" > brightness)

\var\log\acpid showed that each time I pressed the brightness keys, there actually was a response and Ubuntu did execute \etc\acpi\video_brightnessup.sh or ...\video_brightnessdown.sh

All I had to do was change these files to actually write values to \proc\acpi\video\VGA\LCD\brightness et voila...

for instance my \etc\acpi\video_brightnessup.sh:
Code: Select all
#!/bin/bash

CURRENT=$(grep "current:" /proc/acpi/video/VGA/LCD/brightness |awk '{print $2}')

case "$CURRENT" in

7)
echo -n 7 > /proc/acpi/video/VGA/LCD/brightness;
;;
6)
echo -n 7 > /proc/acpi/video/VGA/LCD/brightness;
;;
5)
echo -n 6 > /proc/acpi/video/VGA/LCD/brightness;
;;
4)
echo -n 5 > /proc/acpi/video/VGA/LCD/brightness;
;;
3)
echo -n 4 > /proc/acpi/video/VGA/LCD/brightness;
;;
2)
echo -n 3 > /proc/acpi/video/VGA/LCD/brightness;
;;
1)
echo -n 2 > /proc/acpi/video/VGA/LCD/brightness;
;;
0)
echo -n 1 > /proc/acpi/video/VGA/LCD/brightness;
;;
*)
echo -n 7 > /proc/acpi/video/VGA/LCD/brightness;
;;
esac
Last edited by bobribbon on Sun Jan 20, 2008 8:01 pm, edited 1 time in total.
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby Stevie » Sun Jan 20, 2008 7:53 pm

hey bobribbon !

wow that was a fast answer :)
i had a look in the \var\log\acpid but i couldnt find a trigger for brightness :/
so i guess my keys really arent recognized...
Stevie
 
Posts: 6
Joined: Sat Mar 25, 2006 3:31 pm
Notebook:
  • XA 1526

Postby bobribbon » Sun Jan 20, 2008 7:57 pm

That's a shame... However my keys also didn't show up using xev, but there is an entry in \var\log\acpid saying:
Code: Select all
[Sun Jan 20 20:56:05 2008] received event "video LCD 00000086 00000000"
[Sun Jan 20 20:56:05 2008] notifying client 4757[107:116]
[Sun Jan 20 20:56:05 2008] notifying client 4829[0:0]
[Sun Jan 20 20:56:05 2008] executing action "\etc\acpi\video_brightnessup.sh"
[Sun Jan 20 20:56:05 2008] BEGIN HANDLER MESSAGES
[Sun Jan 20 20:56:05 2008] END HANDLER MESSAGES
[Sun Jan 20 20:56:05 2008] action exited with status 0
[Sun Jan 20 20:56:05 2008] completed event "video LCD 00000086 00000000"


Nothing similar?
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby Stevie » Sun Jan 20, 2008 8:15 pm

Stevie
 
Posts: 6
Joined: Sat Mar 25, 2006 3:31 pm
Notebook:
  • XA 1526

Postby bobribbon » Mon Jan 21, 2008 11:40 pm

How about \var\log\messages?
Any 'Unknown key released' events there?
This message is a natural product.
Slight variations in spelling and grammar enhance it's individual character and beauty
and should not be considered flaws or defects.
bobribbon
 
Posts: 25
Joined: Tue Jan 08, 2008 12:05 am
Notebook:
  • Li1705

Postby Stevie » Tue Jan 22, 2008 12:15 am

hi bobribbon!

that was the first place i had a look at but
i couldnt find anything :(

i guess its some kernel-problem or the lack of a module.
but to be honest, i really have no clue how i could solve this.

greets,

stevie
Stevie
 
Posts: 6
Joined: Sat Mar 25, 2006 3:31 pm
Notebook:
  • XA 1526

Next

Return to Linux / Unix / BSD

Who is online

Users browsing this forum: No registered users and 0 guests

cron