Brightness control not working.
I'm a Slackware newbie. I install Slackware 14 x64 on a Toshiba L750 laptop. Screen is too bright, can't change it using brightness control (on panel). I'm using KDE.
|
You should be able to change it in KDE using main menu --> System Settings --> Power Management, or if laptop is running on battery you'll see a battery icon in the lower right hand corner, click on it and use the Screen Brightness slider
or you can try this from the console (as root), first 2 commands display the max brightness and brightness levels on my machine, last command sets it to a new value. Quote:
|
Can I piggyback on this question?
Basically, I want to do the same thing in i3wm. I can make keyboard shortcuts in .i3/config, but I don't know what program to call from there. Also, I'd like some indicator of what the current brightness level is in i3bar. Thanks. |
the console command works. thank you dr.s!
But how could i make my setting permanent or default? i wonder why the Screen Brightness slider in power management or in the battery monitor not working. |
Quote:
So, I wrote two scripts, bright_up and bright_down: bright_up Code:
#! /bin/bash Code:
#! /bin/bash Code:
# Brightness control Finally, root owns that brightness file (/sys/class/backlight/acpi_video0/brightness), and you can't chown permanently because the file gets rebuilt every time you boot. So, I put this in my /etc/rc.d/rc.local: Code:
chown <user>:users /sys/class/backlight/acpi_video0/brightness I still haven't figured out how to indicate the brightness level in i3bar. And I know this is probably way too much info for what I actually did, but hopefully the next person can google this and get up and running pretty fast. I tried to lay it all out there. |
@DrCube: I think chowning that device to your user is probably not a good idea. Please read up on the "sudo" command, and add the appropriate entries in the /etc/sudoers.conf file.
|
Quote:
I'm not saying you're wrong, I'm just saying: 1) I don't know how to do it with sudo, and b) even if I could, it seems more dangerous to elevate i3's privileges than for a user to take ownership of a single, fairly harmless, file. I don't want my window manager to have any extra privileges that I as a user don't have, except the ability to write to /sys/class/backlight/acpi_video0/brightness. |
Hi,
this thread inspired me to find out how I can control the backlight on my Samsung laptop. The function-keys for the backlight don't work. Thanks to the posting above I found out that Code:
echo > "value" /sys/class/backlight/acpi_video0/brightness I've written the following script Code:
#!/bin/bash Code:
,((mod4Mask, xK_Up), spawn "/usr/local/bin/screen.sh h") Markus |
Quote:
Allow userx to run "abc def ghi 123" without a password. You can configure it to ask a password, but in this case it would be unhelpful. The sudoers method is far safer than anything else. I work in a large(ish) Unix environment (Solaris servers), and we use sudo to allow lower level users access to commands that would otherwise require root permissions. |
@DrCube and @markush, thanks for the script samples!
Quote:
Code:
su -c "echo $brightness > /sys/class/backlight/acpi_video0/brightness" |
Quote:
|
Thanks dr.s. I think I'm gonna like it here (the forum). You guys are very helpful. It's a nice learning experience.
|
All times are GMT -5. The time now is 04:08 PM. |