Thank you Lembas and all. I'm done with it. I'm more than satisfied with what
I have now, and don't have much time to play further with this, especially
when I have so many other technical problems!
Cheers
One could try adding acpi_backlight=vendor to the line
GRUB_CMDLINE_LINUX_DEFAULT= in /etc/default/grub and rebooting the computer
to see if the command keys work properly. Like this:
$ cat /etc/default/grub
[...]
GRUB_CMDLINE_LINUX_DEFAULT=quiet splash acpi_backlight=vendor
[...]
Uh, I got lost again...
What is a xev command?
What is a keysym?
What is xbindkeys?
Sorry for being unclear. xev is a command you type at the terminal, ditto
xbindkeys. The xev command brings up a little white box, move the cursor
inside it. Now you'll see some output in the terminal window you launched xev
from. Part of that output is keysyms for the keys you press.
I
Glad to hear that.
For extra credits you could see if the xev command sees the Fn+right combo. I
guess it must because you get the indicator. If you get a keysym you could
use xbindkeys to bind it to a script.
Done! It works!
Well, it didn't work with the actual key combination from which my laptop is
supposed to control the brightness -I guess that might also be the cause of
the original problem. But it does work with other key combination.
My laptop is suposed to use Fn+Right to increase
Regarding those commands which get longer with sudo, if one uses:
sudo su -c THE_SHORTEST_FORM_OF_THE_COMMAND
will it also work?
Looks like my test case (with redirect) worked, so perhaps yes.
Probably a good find. :)
I wait for the final judgement from the wise elders.
It does work. Now I do not know whether I did it right or wrong first time I
tried, but the thing is it does work.
I mean I do
sudo chown jane:jane /sys/class/backlight/intel_backlight/brightness
And then
echo 500 /sys/class/backlight/intel_backlight/brightness
and it works ok
So then I
It's fun! :) And perhaps somebody else with a similar problem finds this
thread.
Ah, I guess the redirect (the ) might again be causing trouble...
The fix is fortunately easy, just open the text editor of your preference and
put that command there and save the file somewhere. Then we need
Great! Everything worked. Even after a restart. Thank you.
I did different keyboard shortcuts for different values, so it's quite handy
now. But if you feel like posting how to do the last thing you suggested, I
will give it a go for sure.
Ain't tinkering wonderful?! :)
Here's script for one button (dunno if this makes it brighter of dimmer)
#!/bin/sh
file=/sys/class/backlight/intel_backlight/brightness
echo `expr $(cat $file) - 50` $file
and here's the other
#!/bin/sh
file=/sys/class/backlight/intel_backlight/brightness
echo
Thanks a lot lembas.
It works, now I can use the echo command without sudo to change the
brightness. But I did not manage to configure the shortcuts for the keyboard.
When adding a new shortcut (through System Settings Keyboard) I can enter
the name and the command, but don't know how to
Oh,no! I'm wrong. I said it worked, but I was trying with sudo! Sorry.
And now I am stack.
I don't think I'm doing correctly this part:
sudo chown $(whoami):$(whoami)
/sys/class/backlight/intel_backlight/brightness
Should it be
sudo chown jane:jane
Those both chown commands you mention should work and are the same. It is
normal with many commands if there is no error you get no output. You can use
the ls -l /sys/class/backlight/intel_backlight/brightness command before and
after the chown command to see the file change owner and group.
That's good news then, it means it is possible.
You did the right thing when you used sudo when it said no permission.
However, the output redirect part (the in the command) is tricky with sudo,
that's why tee is needed.
Binding keys is pretty straightforward with most keys. But the fact
Hey, it works! The brightness changes with that number!
By the way, what is that tee thing?
And, is there an easy way to bind it to a key combination? I think lembas
commented so, but don't understand how to do it. Just in case it's easy...
I'm already happy that it works!
Thank you all.
Oops, sorry. Ok, there you go:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family
DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core
Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel
Looks like you've got a pretty similar setup as janith who started this
thread. These are your video cards
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro
Thank you. But how? I opened the terminal and wrote Ispci, I guess that's
what you meant. But this is the output I get:
bash: Ispci: command not found
try lspci
its L not i :)
It is not the letter I as in India but the letter L as in Lima.
Hi,
I have the same problem. Since I installed Trisquel on my laptop the
brightness is always high. I try to change it and see the icon responds but
not the brightness, it always stays high. I'm a beginner with GNU+Linux so I
have not really understood the technical explanations.
It
Hey Jane! The first step would be to post the output of the lspci command.
Welcome to free operating systems btw!
And you can bind that to the keys for controlling brightness if the xev
command sees them.
thanks
echo 500 /sys/class/backlight/intel_backlight/brightness work nice
from fn key it work fine from 3.2.* kernels.
i installed latest kernels. but from them its not working.
also i updated xserver-xorg.
this are from lspci
Intel Corporation 3rd Gen Core processor Graphics Controller
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames
[Radeon
So are you saying that you can't change your brightness settings?
yes.
janith wrote:
from fn key it work fine from 3.2.* kernels. i installed latest
kernels. but from them its not working. also i updated xserver-xorg.
this are from lspci Intel Corporation 3rd Gen Core processor
Graphics Controller VGA compatible controller: Advanced Micro
Devices, Inc.
Is the latest stable? I'd not install unstable kernels if I were you.
31 matches
Mail list logo