Ubuntu :: Dim Monitor Backlight Through Software/command Line
Sep 3, 2010
I am doing a project that involves dimming monitor backlight and Im in the process of searching a PC to be used for the project.
I ran ubuntu live cd in a PC shop to see if I can use the ff command: echo 30 > /proc/acpi/video/xxx/xxx/brightness
However, all brightness files just contain <not supported>. Is there another way to adjust the brightness (not using buttons)?
Since the monitor is dimming when idle (through built in power management), is it safe to assume that there is a way to do this?
I already need to confirm if we would order the PC. PC is Asus ET1610PT (all-in-one PC, touchscreen monitor)
View 1 Replies
ADVERTISEMENT
Jul 10, 2010
I'm writing a script to toggle LCD backlight on my laptop between minimum and previous/current level. I will then assign this script to a button. For this I need to be able to adjust backlight by using some command line utility. Also, this must be possible to be performed by a regular user.
What I have already tried:
1) The "xbacklight" utility. This didn't work. Program reported something like "no outputs found".
2) Used "acpitool -l <backlight_level>". This didn't work either.
3) The "echo -n 100 > /proc/acpi/video/VGA/LCD/brightness" works only when I am root. Changing permission of the file to allow writes by a user only valid until reboot. After reboot I need to change permission again, so this approach is not good either.
What works on my laptop, but with GUI:
1) Adjusting LCD brightness in "System->Preferences->Power Management" works.
2) Adjusting brightness with Gnome Brightness Applet works. However, after changing brightness with applet it says "Cannot get laptop panel brightness" and shows red crossed circle icon. Even after applet shows this message, it is possible to change the backlight level. It seems like the brightness level cannot be retrieved by the applet/system, but it can be set.
I can see that it is definitely possible to adjust LCD brightness through software because of the 2 things above, but how do I allow any user to change it from command line?
So, what are my other possible choices for changing backlight from command line?
View 9 Replies
View Related
Dec 23, 2010
After upgrading to Mythbuntu 10.10 from 9.10 (clean install) on my combined front/backend I cannot get monitor (Dell 3007) to switch off from remote, I have been using simple script to DPMS force off for years with no problems, it still works, but some random time later the backlight comes back on. I have tryed the more complex scripts that stop and start the frontend and all of the acpi_osi options. Disabling screensaver has no effect. what causes this, or how to fix? Sysem is Abit IP35e (I suspect this board is the problem)
[Code]...
I have 2 remote frontends both upgraded OK. I have tryed installing 10.10 on a 'scrap' P4 machine, DPMS off works fine on it. I would try another install and/or another MoBo but its the only TV system in the house now.
View 2 Replies
View Related
Jun 20, 2011
I am running CentOS on this box and I'd like to be able to monitor the CPU temperature via the command line. Is this possible?
View 2 Replies
View Related
Nov 26, 2010
I am going to build a Linux VPN server(PPTP) for my friend but here is the problem: He don't know Linux and command line to manage users, monitor server, etc
View 1 Replies
View Related
May 4, 2010
I am attempting to write a very basic script that monitors a server's load and automatically emails an administrator upon the load reaching a certain threshold...
1.) `uptime | awk -F ' ' {'print $10'} | cut -d ',' -f1 | awk -F '.' {'print $1'}` -- the output from this command results in a decimal figure, so when that value is parsed and placed in an if statement, the value is not seen as a number. load-monitor.sh: line 9: [: 4.96: integer expression expected/How can I allow a number like "4.56" to be seen as an actual number within the if statement and be compared to 4, for instance?
2.) I am running a cPanel server on CentOS 5.4 -- when I run mail -s "SUBJECT" $EMAILADDRESS the command just hangs, and stracing the process shows it stuck on a read syscall.
3.) If I wanted to write this script in PHP, I have one primary confusion -- how can I mimic the functionality of obtaining the output from uptime via awk, etc. so that I can determine what the server load is at a given time? Which PHP function(s) would assist in that regard?
View 5 Replies
View Related
May 29, 2010
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
View 5 Replies
View Related
Dec 9, 2010
I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...
View 3 Replies
View Related
Feb 24, 2011
I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
View 5 Replies
View Related
Aug 22, 2011
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies
View Related
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Feb 17, 2010
how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 1 Replies
View Related
Jun 18, 2010
Code: cmd='date | wc'
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
View 4 Replies
View Related
Apr 30, 2011
I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
Can someone point me in the right direction
View 1 Replies
View Related
Oct 25, 2010
I tried
Code:
chown -R owner:group *
which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?
View 9 Replies
View Related
Feb 16, 2010
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 4 Replies
View Related
Oct 15, 2010
I'm trying to convert this awk command from command line into an awk script, but just cannot get it to work:
This is what i have after my BEGIN
Am i missing something here? this just prints out the count for everyline, not counting lines on 5th field that match 'A'
View 1 Replies
View Related
Jun 24, 2011
how do you write the ASCII character #27 in the vim command line?
View 6 Replies
View Related
May 4, 2010
Using netbook asus 1005ha with lucid beta 1 with most of updates on learning to use the CLI and headaches cd command does not seem to reconise directories here is a sample
Code:
yeh i know read the f#####g manual i am but any help would be greatly accepted tried sudo with same commands same problem did have a problem on my debian system that was to do with paths this is not the same on a different footnote anyone thinking of upgrading to lucid sit tight on 9.10 there are still to many issues that need ironing out for a system that is your main system.
View 6 Replies
View Related
Jun 6, 2010
I mis-clicked and now my monitor resolution is WAY too high. I could fix that by re-clicking, but the menu to bring up the screen I need to click is off-screen.By blind clicking I got a command line window. Can anybody tell me the command line to bring up the system preference for monitor resolution?
View 2 Replies
View Related
Jul 7, 2010
I have installed Ubuntu 10.04 on a Dell Dimension 2350/ 2Ghz P4/ 1.5GB memory.After running for up to 10mins the system dies and the monitor alternates between black & a half-screen display of vertical black & white bars every second or so (first the top half then the bottom half of the screen). The unit has the standard Intel onboard graphics chip.The same happens with Ubuntu Studio & Xubuntu yet Mepis 8.5 & Fedora 13 run without problem.It's a standard installation of Ubuntu & all updates have been applied.
View 4 Replies
View Related
Apr 28, 2011
The title says it all. I am using an Acer Aspire laptop that I upgraded from 10.10 to 11.04 today. There is no backlight. What's the fix?
View 9 Replies
View Related
Mar 31, 2010
ive installed ubuntu 10.4 beta on a toshiba a505-s6015 intell i5 processor and intel integrated graphics.it worked fine then the backlight went off.well i restarted it a couple of times and it wouldnt come back on.how do i fix this problem?
View 2 Replies
View Related
Mar 27, 2010
I am dual-booting Karmic/OS X. I have a MacBook Pro 5,1. When using the keyboard to change the backlight, the graphic in the top left does move to indicate a higher brightness (albeit, it moves extremely slowly).
I, of course, have all the necessary drivers installed.
I have all the packages I needed from the Mactel repository. This has been a problem within Karmic since I've put it on my MBP. There have been several updates from the Mactel repository concerning the Nvidia backlight package (I don't remember exactly what that package is called though). I hope each time that it will fix what is going on, but obviously, it hasn't.
Is there any program that I could use to otherwise change the backlight? When I'm sitting outside it's really difficult to see what's on my screen as it also doesn't automatically respond to the change in environmental brightness by making the screen brighter.
View 9 Replies
View Related
May 5, 2010
I have an Asus P50IJ-X2 and in lucid the backlight cannot be adjusted. The panel app doesnt work, when I click on it and try to adjust the slider it just disappears. When I reopen it the slider is at the top left corner of the screen.
The function keys seem to be detected alright, but when I press them I get the notification that the brightness is going down but nothing happens. Also after the first press the notification gets extremely laggy. If I press the brightness keys again it takes 30 seconds or more for the notification to show up. Also after the first press my volume function keys have the same behaviour in the notification area as the function keys.
Also messing with the controls in the power settings doesn't do anything. The strange thing is all of this worked perfectly in Karmic. The function keys, auto dimming, everything just worked out of the box. I have no idea where to start trouble shooting this so can anyone give me some direction?
View 1 Replies
View Related
May 30, 2010
Just upgraded to 10.04. Everything seems to still work on my Macbook, with a bonus being the buttons to modify the keyboard backlight brightness seem to work now.
However, the only caveat is that I can't seem to turn off the backlight. Pressing the dim button all the way to off just seems to reset to full brightness. Even if I set the brightness to 1 (almost off), the backlight seems to reset itself to full brightness at seemingly random times.
Running this command used to turn it off, but now doesn't work:
Code:
echo 0 | sudo tee -a /sys/class/leds/smc::kbd_backlight/brightness
Is this a bug? How do I turn off the keyboard backlight?
View 3 Replies
View Related
Jun 18, 2010
Fn + brightness-rightness+ = shows notification about brightness status (50%), but does not control the intensity of backlight. it's just stuck on 50% and that's all.
Ubuntu 10.04 x64,
notebook vaio vgn-nw21mf.
View 8 Replies
View Related
Feb 24, 2011
I've finished integrating proper keyboard backlight support into gnome-power-manager (which in turn uses upower to actually control the keyboard backlight) which with any luck will be available in Natty out of the box. A similar patch should also land upstream too so Fedora etc should get it for free too in their next release too. In essence this allows us to provide the user with greater feedback and control than say just using pommed (ie. we can dim the keyboard on idle like the lcd display etc, and can display nice notifications of the keyboard backlight level too - see attached screenshot).
View 9 Replies
View Related
Jul 25, 2009
Debian Lenny on a Toshiba Portege 350000:08.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]01:00.0 VGA compatible controller: Trident Microsystems CyberBlade XPAi1 (rev 82)kernel version 2.6.26-2-686On my system, "xset dpms force off" blanks the screen, but does not turn off the backlight. This means that the automated screen off in X does not actually save any power when it blanks the screen.I can turn off the backlight manually using the BIOS tool "vbetool dpms off" (but then I have to turn it back on again manually too).Question 1: is this a problem with the graphics driver interface, or with X, or with the power management driver interface?Question 2: as a workaround, is there any way for me to hook into the dpms off/on that X is doing, and run a script to call vbetool? The best workaround hack I have come across so far is to have a screensaver that calls vbetool, but I was hoping to find something that doesn't require me to run a daemon all the time.
View 4 Replies
View Related
Jun 22, 2010
I have been given the task of installing CentOS 5.5 on some new Fujitsu Siemens S710 laptops and have the following problem. The OS seems to install without any issues but when it starts up you can see the login prompt just as the backlight is off on the laptop screen. If you were to plug in an external monitor it will work fine and the screen is perfect. The only thing I can think of is if the video drivers need to be updated but I can't seem to fine any Linux ones. It seems to use the Intel mobile HD graphics chipset.
View 2 Replies
View Related