[SOLVED] YASBI (yet another screen brightness issue)

i feel silly posting this, as there seems to be a lot of documentation about this, but i'm kind of baffled.  if i run
echo "5" > /sys/class/backlight/acpi_video0/brightness
as root, everything works nicely, my screen turns it's brightness down to half-way (max brightness is 10).
if i run the same command as sudo, i get a permissions error.  my final goal is to bind this to a key in openbox, but first i need to figure out what i'm doing wrong.  do i need to be part of a certain group?  do i need to edit my sudoers file?
thanks in advance.
Last edited by williamkray (2012-02-02 22:49:56)

i have solved this, and am posting how here for anyone else who might come across this in a search. this is what i came up with:
added the following to my /etc/rc.local:
chgrp users /sys/class/backlight/acpi_video0/brightness && chmod g=+rw /sys/class/backlight/acpi_video0/brightness
then i came across this script on another forum post, and saved it to /usr/sbin/brightness, made it executable and chgrp users:
#!/bin/bash
file="/sys/class/backlight/acpi_video0/brightness"
level=$(cat $file)
if [[ "$#" -eq 0 ]]; then
cat $file
elif [[ "$1" = "-" ]]; then
echo $(( level - 1 )) > $file
elif [[ "$1" = "+" ]]; then
echo $(( level + 1 )) > $file
fi
then in my ~/.config/openbox/rc.xml i added the following code to bind the commands to my Super+Up and Super+Down :
<keybind key="W-Up">
<action name="Execute">
<command>brightness +</command>
</action>
</keybind>
<keybind key="W-Down">
<action name="Execute">
<command>brightness -</command>
</action>
</keybind>
Last edited by williamkray (2012-02-02 22:51:28)

Similar Messages

  • HP Beats Special Edition 15-p030nr Notebook PC (ENERGY STAR) screen brightness issue

    I'm haing a screen brightness issue on my HP Beats Special Edition 15-p030nr Notebook PC (ENERGY STAR). I upgraded from 8.1 and the F2/F3 keys to dim or brighten screen do not function. Any suggestions besides reverting back to 8.1.? Not sure if I had the screen dimmed all the way or brightened all the way when it was upgrading, or if it even mattered.  

    Hi @Twright2014
    Welcome to the HP Support Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I see your having some sound issues with your new notebook. I will be happy to help you with this. How does the audio sound when you use a set of headphones? Try the troubleshooting steps in this HP document No Sound from Speakers which includes using the built-in Windows troubleshooter.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • [SOLVED] Screen brightness issues with Acer 5372Z

    The screen of my laptop goes black whenever I boot into ArchLinux, after "reading Udev events" on startup. Most of the time I have to use a flashlight to see the console on my screen and type
    sudo setpci -s 00:02.0 F4.B=20
    to set screen brightness manually. The `Fn` + `Brightness up` combination doesn't work on my machine, but that's not an issue with Arch, but fault to sugar in coffee.
    There are a lot of similar threads in this forum, but none of the solutions described there really worked 100% or not at all, that's why I'm opening a new thread as this seems to be specific to my hardware.
    Details:
    Graphics controller:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
    Screen resolution:
    1366*766
    /boot/grub/menu.lst:
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz-linux root=/dev/sda10 resume=/dev/sda5 ro vga=775
    initrd /initramfs-linux.img
    /etc/rc.conf#DAEMONS:
    DAEMONS=(hwclock syslog-ng network netfs crond laptop-mode dbus gdm)
    I will describe here what I have did so far on hacking:
    Installed the video driver for my Intel card as described here in the wiki
    Set kernel mode to `nomodeset`, without specifying vga, of course, which surprisingly solved the issue, but prevented me from using Gnome.
    The supposed solution in the Arch wiki doesn't work for me. It makes it worse, in the sense of dumping screen brightness even before "reading udev events" on boot.
    My current workaround (to avoid using a flashlight) is to put this line into my `/etc/rc.local`:
    setpci -s 00:02.0 F4.B=20
    I wonder if you can help me to solve this issue, or point me to any of the great documentation provided by the Arch community I might have missed...
    Last edited by kennym (2011-09-06 16:03:58)

    rg_arc wrote:I have this problem as well for my Acer Aspire 4810TZ. The only thing I can think of is to make some sort of temporary fix. But I agree with you, There should be a permanent fix. Every time I've installed Arch on this computer the same problem arises and the only way I can change the brightness is the setpci terminal method.
    This is bad news for new Arch (and Linux) users. This will be probably the point where they will turn over to another distribution.
    It seems to be something which has been included in newer kernels, because I can remember that in the 2.6 series this issue did not exist.
    Last edited by kennym (2011-09-05 16:05:08)

  • Playbook Screen Brightness Issue

    I have purchased PB few days back and I am not able to change the screen brightness. I have tried disabling the auto-din feature and tried adjusting brightness from the battery icon. The slider goes from end to end but the brightness remains the same. 
    Also the sliders in Settings->Screen does not even move. 
    Did any one else face similar issue? How can this be resolved? 

    on Playbook press power button and both Vol + - buttons for 10 seconds to reboot it.
     and see if it persists.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Lumia 735 screen brightness issue

    My new Lumia 735 has an issue with the screen brightness dimming for no reason. For completeness I have done a reset, it is nor on auto, and does I when on mains or battery. The screen is supposed to be extremely bright when set to max. However it is for about 10 secs then dims then goes bright again then dims for ages then suddenly goes bright. I have been Through all settings and changed/tried all things to no avail. I think this is not a unique problem and is prob software linked. Anyone got any ideas?

    Although you say you've set the screen so the brightness is NOT set to 'auto', this sure sounds like the light sensor is still active.
    I would first try a power cycle to see if that clears things up (which I doubt, but no harm trying, right?).  Then do a back up and try a hard reset.
    After the hard reset, test to see if the brightness is working properly.  If not, then it may be malfunctioning light sensor and require repair/replacement.  If it's working properly, then slowly start adding apps one by one and testing again, to see if one of them is causing the problem.
    /drt

  • Yet Another P7N Diamond Issue

    Apart from the ongoing problem I am still having in this thread I now have yet another dilemma. I bought a BFG 9800 GT OC2 as a upgrade and installed it the usual way ensuring I connected the 6 pin connector too and the pc does not boot up even after several attempts
    Instead I am getting a strange beeping pattern one long beep then some shorts 
    Please if someone could shed some light I would greatly appreciate it even if its regarding my previous issue.

    http://www.coolermaster.com/products/product.php?language=en&act=detail&tbcate=22&id=2543
    I use the above Cooler Master PSU, zero issues. Has 4 pci-e connectors, so it's ready for quad sli if I ever want to go that route with my P6n Diamond. Has lots of different connection options, highly rated PSU. Not all Cooler Master PSUs underperform, just have to know what you're buying. The above supply also has 2 8 pin connectors so for instance when my GTX 295 arrives I'll have no trouble (card uses 6/8 pin). Reviews also can be helpful.

  • Card Reader & Screen Brightness Issues with 3000 N100 Running Fedora 10

    Hi, I'm new to the forum, and came here to look for info on a couple minor issues I'm having with Fedora 10 on my 3000 N100.  It's great to see that there's a group of Linux users here.  Anyway, onto the issues:
    1) The integrated card reader.  It works just as it should right after I boot up - i.e. insert an SD card and it auto mounts.  However, if I leave the system idle while doing other things the card reader quits working.  I've used the terminal to look up the location of the card reader when it's working properly.  If I unmount the card (under the Gnome desktop System menu, right click the card, select unmount), leave it in the reader, and try to remount it in terminal (using the location mentioned above) it tells me the device isn't found, or the location doesn't exist.  
    2) I've set the screen brightness to max as my default (which is just bright enough to read comfortably under the fluorescent lights here at work), and my brightness function keys work fine too right after bootup.  Again, if I leave the system idle for a bit the screen goes dim.  At this point the brightness function keys quit working as well.  If I go to System > Preferences > System > Power Management I can slide the brightness toggle down and back up, and the screen then immediatetly returns to full brightness.   
    Any help you folks can offer would be greatly appreciated.       

    Hi ugaarguy,
    It sounds to me like there's some power settings that are powering down the card reader after a certain period of inactivity.  This could also be the case for your brightness settings and keys.
    You may find a better answer in the Fedora forums regarding these issues, so you might want to try posting there as well.
    Is there a control panel which deals with power settings in Fedora?  Perhaps check around for these settings to see if there are certain power saving features enabled on your system.
    J

  • Z1 screen brightness issue

    my xperia Z1 brightness settings is auto brightness… when i switched off the screen for amount of time and switch it on to use my phone .. screen brightness go very high then back to the original state… what is this ,why is this happen and what is the solution please ????

    If you have auto brightness active it will change the brightness depending on your surroundings. Before it's able to adjust to the surroundings it might go very bright before it finds the optimal setting for the situation. 

  • GE60 SCREEN BRIGHTNESS ISSUE

    A few days ago i was watching videos and i didnt realise that unplug my notebook and it shutdown.A day after when i opened my nb i couldnt adjust my screen brightness. I went back to my old graphics driver (hd4000).Also updated, deleted driver and setup again... I controlled my device manager page. I deleted pnp monitor and searched changes. i cant figure it out. If someone find my solution i ll be appreciated..

    i have GE60 0ND.. (gtx660m i5 etc.)
    Fn keys working with other comb.
    And sometimes i get windows updates but that day i didnt update.
    Also now i tried Ec reset according your advice. like there,
    https://forum-en.msi.com/index.php?topic=112416.0
    but it doesnt working..
    i about to blow my cap.. its really annoying..

  • [SOLVED, sort of] Yet another UEFI boot issue

    Hello everyone,
    Let me start by saying sorry for the long (first) post.
    I've ended up with a UEFI boot problem I can't solve. I've searched the forum and internet and I realize I'm not the only one who ran into problems with UEFI. Unfortunately, the problems other have had seem not similar to mine. I've spent almost 2 days now trying to figure this out, and I'm getting nowhere (though I've learnt some more about UEFI, which I guess is good). I was hoping someone here can give me some hints on how to proceed.
    So lets start with the background. I recently bought a new computer (Lenovo Thinkpad Edge E530 with Windows 8) and of course I want to run ArchLinux on it (been using ArchLinux for almost 7 years now and no plans on switching). Installation went ok with only a few problems during installation that I managed to solve (or so I thought). I must admit I didn't follow the guide fully. I didn't want to remove the Restore and Windows partitions, so I figured it would be safe to reuse the existing UEFI System Partition, as long as there was enough room, which there was. Anyway, I now have a computer I can boot into ArchLinux and also Windows 8, just the way I want it, almost. There is this one final issue I haven't been able to figure out how to solve.
    The problem
    Whenever I reset/power on the computer, I must press Enter during the initial screen (showing a Lenovo logo, and a message about pressing Enter to interrupt normal startup). If I don't press Enter before the timeout (a second or so), the screen will go white and that's it. No beep, no message, no nothing but a white screen. A power cycle is the only way to leave this state. Occasionally the screen will be a white bar at the top and random colours below, but I'm guessing this only represents what is in graphics memory at the time (0x00, 0xFF or any other random value).
    If i do press Enter however, then I'm presented with a menu where I can select what to boot; rEFInd (which is preselected) along with Windows 8 and some restore and diagnostic entries. Pressing enter will take me to the preselected rEFInd, pressing enter again (or wait for timeout) will boot linux, and I'm in. Nothing weird there. And if I select Windows in rEFInd, then windows boot, just as expected.
    There is no difference whether I'm switching from Windows to Linux or Linux to Windows or just reboot the same OS I was using again. The result is the same whatever I choose to boot.
    So the question is: Why do I have to select rEFInd manually and go through all these menus? Should I not be able to just power it on and let it boot the preselected rEFInd entry and continue from there, without me helping it?
    Trying to solve it
    Searching here and on the internet gave me some ideas on what to try, so here is a list of my attempts:
    efibootmgr show me there is a rEFInd entry, and that it is the first one in boot order
    I copied refindx64.efi to /boot/efi/EFI/Boot/bootx64.efi (replacing an existing entry)
    I've updated the EFI firmware (from Lenovo) to the latest and greatest
    One other guy had almost the same issue, but with a single boot of Windows. He solved it with Microsoft Boot Manager (there is an Automatic Repair, or something). I even dared trying this, though I must admit I was a bit hesitant about letting some Microsoft program trying to repair my computer. Anyway, it said it couldn't repair my problem, nor did it say I had one, so I am none the wiser.
    None of the above gave anything.
    So, that's it. I guess I can live with having to press Enter on every power up/reset, but it is very annoying having to do so, and even more so when I forget it because then I'm forced to power cycle it. I hope someone reading this can figure out what's going on, because I am clueless.
    Best regards,
    Johan
    Last edited by 6feet5 (2013-01-08 19:03:50)

    WonderWoofy wrote:@srs5694, have you thought about filing a bug report/feature request about the naming scheme here?  I would imagine that something coming directly from the upstream developer would be something that they should take into consideration.  Also, I imagine that renaming it to refindx64.efi kind of goes against the whole "vanilla packages" thing we tout around here... so it really makes me wonder why it is done in the first place.
    I've just done that:
    https://bugs.archlinux.org/task/33326
    It's not been very important until recently; but I've been putting a lot of effort into the ancillary support scripts (install.sh and mvrefind.sh). They necessarily rely on the files having certain names, so installing them under other names robs users of functionality.
    6feet5 wrote:I've decided to try and restore the whole unit, thinking it would take maybe an hour or two. It's been running now for almost 3 hours and only completed 20%.
    Good luck with that!
    FWIW, it seems that the number of EFI-related bug reports on Linux forums has gone way up recently. No doubt this is because EFI is now pretty much universal on new computers, so problems that used to affect one or two people now affect dozens or hundreds, and some of those post about them.

  • [Solved]Yet Another HAL / Mounting issue....

    My issue can be avoided by manually mounting a device, just to get that out there.
    Whenever I transfer a larger file ( > 200mb) onto a removable USB device formated in either FAT or any non-journaled filesystem, Thunar will *pretend* like its unmounting the device but after about 20 seconds it states:
    Failed to unmount "<device name>".
    Did not receive a reply. Possible causes include: the remote application did not send a reply,
    the message bus security policy blocked the reply, the reply timeout expired,
    or the network connection was broken.
    On top of the message, my data written is mostly corrupt.
    What I know:
    ** Thunar uses exo-unmount to unmount devices given a HAL uuid. Maybe this is failing? Any clue how to debug this?
    ** 20-storage-methods.fdi states that all vfat mounted devices have 'flush' and 'async' mount options... could this be an issue?
    ** I'm part of the 'storage' and 'power' groups.
    ** i start XFCE using ck-launch-session startxfce4
    I've made sure that the device has no other handles and is not open in any window. My system(s) all have new and updated HAL and DBUS, as well as every other package. Running 'sync' after writing the files sometimes fixes the issue. Does anyone have a fix for why removable drives aren't "sending a reply" ? Thanks!
    --Anthony
    Last edited by anthonyclark (2010-09-22 17:48:13)

    Alright ... well. I managed to solve this kind of. As per my last post regarding the same exact issue, I must've missed a reply from Inxsible telling me to use the FIRST suggest UDEV rule from the arch udev wiki.
    The result of this is basically...
    *Device inserted
    *Mounted in /media/<device name> automatically
    *(No access via Thunar sidepane since it gets mounted with `mount`)
    *No need to manually unmount
    *just unplug or power off the device and it gets "lazy" unmounted via `unmount`
    Downside:
    *Mounting a drive via TrueCrypt creates a directory in /media that doesn't get automatically deleted.
    *Not a solution to Thunar having response issues with unmounting.
    /etc/udev/rules.d/11-media-by-label-auto-mount.rules
    KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
    # Import FS infos
    IMPORT{program}="/sbin/blkid -o udev -p %N"
    # Get a label if present, otherwise specify one
    ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
    ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
    # Global mount options
    ACTION=="add", ENV{mount_options}="relatime"
    # Filesystem-specific mount options
    ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
    # Mount the device
    ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
    # Clean up after removal
    ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
    # Exit
    LABEL="media_by_label_auto_mount_end"
    Last edited by anthonyclark (2010-09-22 03:50:00)

  • Yet Another Toshiba A75 Issue.. Can anyone solve it ???

    I have a A75 Satellite. The issue I'm having is that everytime I try and install Windows XP, when it's copying files, it totally shuts down. It can stay running at the bios screen all day long, but when it comes to installing an OS, it shuts off.. Any fix for this ? Thanks !

    Try cleaning the air vents. When it's at the BIOS screeen the CPU, memory, and hard drive aren't doing anything so very little heat is generated, but when the OS is being loaded, the CPU, memory, hard drive, and DVD drive are running and generating a lot of heat. If the vents are clogged with dust the fan won't be able to cool the unit down enough and the unit shuts down.

  • Yet another CC billing issue

    I had to update the credit card on file with my Creative Cloud account. Since then, the card has not been billed. The last payment was made on October 6. The information on file is correct, and has been for quite some time (even with multiple attempts to re-update it). Now access to my Adobe products has been suspended. I tried calling Adobe multiple times ... once hanging up after 45 minutes of being on hold, another time choosing the call-back option and never receiving a call back, and finally getting the recording that the wait time was between 90 and 120 minutes. One time I got through on chat, but after the unsuccessful session I was told to call Customer Support. Yet a connection to sales was near instantaneous.
    These wait times are completely unacceptable. I understand that the attack on your servers has caused big headaches, but hire some temporary support staff to get through this.
    Please, Adobe, help me out. I need to use your products for work.
    -Jon-

    Hi Jon,
    I am so sorry for the inconvenience  faced by you, please provide me your contact number, if possible with an alternate contact number. I will follow up the issue.
    I have send an email to you also, please respond.
    Regards,
    Rajshree

  • Newly Discovered Screen Brightness Issue

    After reading a topic on EverythingiPhone about the battery recharge indicator "glowing", I decided to test my iPhones side by side. I never realized before but one of my phones screen is much darker than the other one, even though both are on auto-brightness and the same brightness level. Its very noticable on any screen that is a light color. Also when you look at the weather widget the one that is brighter has the sun picture with much longer rays.
    Here are a few pictures of them side by side for comparison, has anyone else noticed these issues?
    http://img254.imageshack.us/my.php?image=img0135wb2.jpg
    http://img58.imageshack.us/my.php?image=img0138xd0.jpg
    http://img507.imageshack.us/my.php?image=img0136fg5.jpg
      Mac OS X (10.4.8)  

    It doesnt block the sensor, I made sure - it barely covers all of the metal part around the edges. I never noticed a problem until I read this article: then when I was testing the "glowing battery" theory I noticed that the one with the glowing battery also had a much brighter screen, even at lowest and highest brightness settings.
    http://72.14.209.104/search?hs=sUq&hl=en&lr=&c2coff=1&q=cache%3Ahttp%3A%2F%2Fwww .wirelessinfo.com%2Fcontent%2F2-out-of-our-3-iPhones-have-faulty-batteries.htm&b tnG=Search

  • 10.6.8 update: screen brightness issues when hooked to external monitor

    I just upgraded to MacOS 10.6.8 yesterday, and since then, the screen on my Macbook is acting strange. 
    I'm hooked up to an external monitor which I use almost all the time as the primary monitor.  Usually, when I'm using the external, I turn the brightness all the way down (to black) on the Macbook.  After the update, however, the Macbook seems to have a mind of its own.  The screen gets brighter, then dimmer, then brighter again, without reason.  Or, othertimes, after about 30 seconds of inactivity, the Macbook screen gets brighter, then when you move the mouse, it goes back to black again.
    It's not that I care so much, but just wish I knew what was going on.  Glitch in the new software?
    Macbook
    MacOS 10.6.8
    External monitor: ViewSonic VA2231wm

    Same problem here with a MacBook Pro. I have the notebook connected to a Cinema Display and thus manually dimmed down completely my MacBook Screen. Now after updating to 10.6.8 my MacBook screen dimms up at the time when it would normally dimm it down if the screen was "enabled".
    I tried several steps to fix that:
    - Dis- and reconnected my external Cinema Display.
    - Changed display and energy safer settings in system preferences.
    - Fixed file permissions.
    - Did a PRAM-reset.
    Nothing helped.
    Please help us!

Maybe you are looking for

  • I would like to know if my phone has been hacked in any sort of way.

    I found two contacts of people in my contact book who I never added into it. I then got a new phone, but a few days later the same two contacts reappeared. Both of the times that I have found them on my phone the numbers have included contact photos.

  • Need help in refining the query

    Hello Experts, Need your help in refining the query further more. table structure  Mskey  Col A Col B 1   empno [20141127-20151128]1234 1   empno [20151201-99991231]232544 1   salutation [20141127-99991231]Mrs 1   salutation [20151127-99991231]Mr 2  

  • Installing Oracle 8.1.5 on Sun

    Can anybody help me in installing Oracle 8.1.5 on Sun Solaries 2.8 for INTEL. I have the Oracle CD that comes with Solaries 2.8 software but everyime when I insert the CD, the system does'nt mount it. K

  • How to play a cue point with mixer

    I know how to play a cue point of sound with the method: sound(1).queue([#member: ...  #startTime: ... EndTime: ... ]) How can I transfer the method of cue point using  the mixer? I need to have any hint about this because I must use both cue point w

  • PDF and Illustrator

    I am trying to create a PDF that can be filled out by clients and saved and sent back for approval. I was able to save the fillable PDF and everything works fine. My problem is I would like to take this and make it an AI template since the artwork ch