General :: Acpi Result In Hardstatus Line In Screen?
Apr 15, 2011the command acpi gives me the percentage of battery that my laptop has.I would like to print the result of acpi in the hardstatus line of "screen".
View 5 Repliesthe command acpi gives me the percentage of battery that my laptop has.I would like to print the result of acpi in the hardstatus line of "screen".
View 5 RepliesBios is a good recommendation but will that affect the fan speed? I know about the acpi=off option, this does not work properly- even on suse. Maybe noapic would work better? Really is there a cover all command line instruction (for all distros) to turn the annoying thing off? Main problem occurs when watching the telly and the screensaver kicks in, with suze it turns the sound off as well, even after you have re-entered the password
View 1 Replies View RelatedI have the following commande /sbin/fuser -f -u /u/DT01/F010107 1>/tmp/null 2>/tmp/seausr.T0069 when executing as root 'su' this give me all user using the file. but when tried with 'sudo' i am asked with 'user password'. Is ther anyway to simply get the result without having to supply a password and to see all user not only me. (i have the file open also).
View 1 Replies View RelatedI have an xml file that is similar to this.Suppose that this file name is Example.
<PMID>10605436</PMID>
<Year>2000</Year>
<ArticleTitle>Steroids</ArticleTitle>
[code]...
Having trouble rebooting a system. Have a Ubuntu 9.10 (2.6.31-16 generic-pae) build on a VMWare installation. The system was fine until I rebooted after an update. Now I get the above message and the system halts loading. Have tried to Grub acpi=off and acpi=force to no avail.
View 1 Replies View RelatedWhen I run OpenSUSE from the Live CD using normal settings, booting stops with a blank screen a moment after the kernel is loaded. When running it with ACPI disabled, it works, but direct rendering is disabled, even though it detects my video card (Mobility Radeon HD 5650) correctly Here's the Xorg.0.log file: my xorg log - [URL]
View 3 Replies View RelatedSlackware 13.37 is giving me ugly suspend/resume problems.When I suspend to RAM and my laptop wakes up again, I get a corrupt screen flashing like crazy.This happens when I suspend from the console and when in X11; be it by issuing 'echo mem >/sys/power/state' or 'pm-suspend'.Tried the 'save-pci' quirk for 'pm-suspend', no dice.Tried to POST the card with 'vbetool' after resume, no dice. Tried to save/restore vbestate before and after suspend/resume, no dice.What is one supposed to do to get this stuff to work in 2011?Funny thing that suspend-to-disk works as it should.Also, with 12.2 I would pick a VGA mode for the console in 'lilo.conf' and it would freaking stick. Not anymore. Now the 1st half of the boot is performed in my chosen mode (80x30), then it switches to maximum resolution with an idiotically unsightly small font.My laptop is an Acer Aspire 5101 with an ATI Radeon 200M card.Is anyone going thru the same hell or has anyone found a fix?
View 1 Replies View RelatedOn both Karmic Koala as well as Lucid Lynx, I am having massive problems getting my nvidia card to register properly. I am on an Acer Aspire 5953 laptop pc with a Gt130m discrete GPU in a hybrid installation with an onboard GPU.Freshly installed, both 9.10 and 10.04 runs smoothly, I can enable desktop effects, I can even see the screensavers that run openGL - although they run laggily in fullscreen, since they're obviously using the onboard, and very weak, GPU.The problem however, appears whenever I install the suggested NVIDIA drivers that Ubuntu finds for me - after doing this, I am asked to reboot the system and on both systems, I am treated to a black screen, instead of a login-screen. The only way to get the system up and running again, I have found, is boot in fail safe mode and edit /etc/X11/xorg.conf, erasing everything. This lets me boot back up in a regular mode.
When I check the logs, both the onboard GPU and the gt130m GPU is located, the onboard as PCI:0:0:2:0 and the nvidia gt130m discrete gpu as PCI:0:1:0:0 - I have tried adding BusID: ("PCI:0:1:0:0") to the xorg.conf, too, to no avail. I am continously treated to the black screen (a flicker at most) and the logs always tells me that no xserver could find no screens.So far, I have only been installing Ubuntu inside windows - I am hesitating to install on a fresh drive, since I am afraid of the nvidia black screen putting me in a position where I can't access the system. Is it possible that the fact that I install ubuntu inside windows might somehow affect Linux's capability of accessing my discrete GPU?
I have random X freezes (suddenly keyboard and mouse stop to react). Xorg.O.log is error and warnings free. The only problems I see in syslog/ dmesg are related to ACPI.
I have Asus P5E3 Deluxe motherboard. Slackware 13.1
Linux vareg 2.6.33.4-smp #2 SMP Wed May 12 22:47:36 CDT 2010 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux
Code:
Code:
I ahve also today upgraded my BIOS to 1303 version. Still no difference.
While attempting to install an external screen on my laptop I messed up the KDE screen settings and upon reboot I get a command line interface.Which configuration file should I edit to set up my screen so that I get my Debian lenny KDE GUI back?
View 4 Replies View RelatedI was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in Screen, but I cannot seem to find any commands that will work. I need to see the onscreen output "further up" than I can on my current screen. CTRL + a is supposed to put me into scroll mode inside Screen, but it's not working.
View 4 Replies View RelatedI am having an install problem where the distro I am installing, installed at the wrong screen resolution. The display settings menu doesn't offer the correct resolution so I'm using half my screen real estate.
View 5 Replies View RelatedI haven't been able to use linux for like 6 months I've tried Fedora 14, Debian Testing, Ubuntu 10.04 and now Mint KDE.
Whenever I boot any distro my laptop acts randombly, it gets to GDM and it freezes, or it lets me login and then freezes or works really slow, even through the shell.
The only thing I could figured is to insert acpi=off on the boot commands googling around, and there it boots.
My problem is that it gets overheated, I can't use any porcessor policy and I can't suspend my laptop with that boot line.
I have a Toshiba Satellite L505D-GS6000 it had windows7 on it when I bought it new. Needless to say windows just ran too slow. The only Ubuntu distro that would boot up was Karmic 9.10. I had to append the phrase acpi=off to get the live ISO to boot I had to type acpi=off after the word splash. I saw it would boot so I installed it as the only OS on this computer.
Now when I boot up I am hitting the power button once and the back on again to get to the grub. I hit the E key use my arrows down to the word splash type acpi=off. Then hit CTRL X to boot up. How do I put this permanently into Grub2.
I use a program which makes a large image which I have to scroll to view. The program has no way to save the image, and I have no access to the source to modify it. The only way I have to get the image from the program is by screenshot. My goal is to save the full size image without having to piece together individual screenshots. I'm using this script to try taking a screenshot:
#!/bin/bash
window=$(wmctrl -l | grep "Program$" | awk '{print $1}')
wmctrl -v -i -r $window -e '0,0,0,6030,5828'
wmctrl -i -a $window
import -window $window ~/Desktop/screenshot.png
This uses wmctrl to get the window id ($window) for a window named "Program". It then tries to resize the window to the desired dimensions. It uses imagemagick (import) to save a screenshot.png on the user's Desktop. All of this works except the resize step. I can resize the window using wmctrl -r -e, but sizes greater than the screen size don't work. I'm using Ubuntu 10.04 and the Gnome Desktop. I run two monitors, but I've tried this with one of them disabled. Is there a way to resize the window larger than my screen to get a huge screenshot?
Part II: I tried using xrandr to set up screen panning, so as to have a bigger desktop than my monitor. xrandr --output LVDS --panning 2600x2500 This command makes the laptop screen pan over a 2600x2500 size desktop, even though it can only show 1440x900 at one time. To turn off the panning, I can use a similar command to set total size and with zeroes for the panning section. This gives me back my original laptop display behavior. xrandr --fb 1440x900 --output LVDS --panning 0x0 This is all done with xrandr, and does not require any Xorg.conf changes (my Ubuntu system doesn't even have an Xorg.conf).
My video card seems to only allow about 6.5 million pixels, even though the maximum dimensions are 8192x8192. That maximum seems to be the maximum for either dimension, but there is a limit to how many pixels can be drawn, which is the width multiplied by the height. Once I did the screen resize, I tried my script again and got a screenshot. The screenshot however is totally scrambled. I'm not sure if it's unable to take a screenshot of an off-screen window or if it is unable to handle the large dimensions of the window. With the panning display, the window should think it is visible, and the window manager should think it is on-screen. So there is a pixel buffer somewhere with those pixels in it, so there should be a way to get a screenshot.
I got macbook pro 5.1 recently upgraded to 11.04, all works out of the box! However when I watch movies or play a game from time to time I observe a horizontal line in the upper part of my screen which I believe is a screen tearing.Depending on a movie player this effect is more or less visible.nvidia propietary driver enabledvsync enabledcompiz settings adjusted (refresh rate ->60, vsync)nvidia-settings -l is loaded with the systemMaybe it's not a huge problem but everything works fine under osx
View 3 Replies View RelatedI have an Ubuntu Linux on a VMWare running and I've installed RPM Package Manager. However when I try to query all packages using the rpm -qa command, I don't get any results returned.
View 2 Replies View Related#!/bin/shLOOK_FOR="NTLMAuthenticationFilter"for i in `find ./ -name "*jar"`doecho "Looking in $i ..."grepjar -e $LOOK_FOR $idoneI wrote the script above, and try to find if there any file name LOOK_FOR exist in those jar,my quest is: grepjar -e $LOOK_FOR $ihere how can I check if there are any successful result , and output them ?
View 2 Replies View RelatedEvery time I need to find a file and then open it, I have to use :
find ./ -name **.properties. , then copy the result, and then vi "paste the result here" .
If I need to use a mouse, it can be a little trouble. So is there any better way to do this?
I have used cp -rl to copy a folder. When measuring the size of the source and of the result of the copy du -sl returns slightly different sizes, even though diff confirms that their content are identical.Both folders reside on the same hard drive, no modifications to any of them have been done between the copy and the measure. I found nothing in the documentation of du and cp which could explain the difference.
View 1 Replies View RelatedI want to store the result of wc -l as a variable so I can use it later in my script...so far unsuccessfully.
I have tried this:
set `echo awk '{ print $1, $6}' | wc -l` | echo $1
but it is far from working.
Yesterday I thought I had solved my "Blank screen boot"-issue when I successfully got to the terminal login screen without the screen going black by booting with
Code:
Linux acpi=off
I spoke too soon. I found out shortly after that when trying to "startx" with acpi off gave me these errors:
Code:
WARNING: Error inserting i2c_algo_bit ("filepath"): No such device
WARNING: Error inserting intel_agp ("filepath"): No such device
[Code]....
Then I read somewhere that booting with "i915.modeset=0" might work. So I removed acpi=off from lilo and added this, and sure enough, I got to terminal login, but I get the same errors with "startx".
I must make it clear that I can successfully perform startx when I boot without "acpi=off" or "i915.modeset=0", I am unable to see the screen but I can hear the KDE fanfare, etc.
List of 77 lines with the names of movies. For ease, let's say it's in a text file. What I want is a command line argument I can pass that'll read each line and pick one of those 77 lines at random, except I can't figure out how to do this. Is there a program I can just pipe the output of 'cat listofmovies.txt' to?
View 13 Replies View RelatedI am connecting to MySQL DataBase using shellscript and writing a select statement like select attachmentid from attachments where pageid=10175 I want to store the output of the select statement into a shellvariable or a file. How can i do it using shellscript.
View 4 Replies View RelatedI am frustrated by running a script on the Fedora 14 computer as a cron job. I paste the code:
Code:
#!/bin/bash
#a backup script to copy data from sda to sdc
ROOTVOL=`blkid -U ea210a08-6212-4dc8-be1c-23fce3b965bc`
[code]....
So when I run this as root, for example:
Code:
# /root/myscript
the result is what I expect:
Code:
Jul 1 13:41:16 svn root: ADMIN: Executing backup-svn
Jul 1 13:41:16 svn root: using blkid ea210a08-6212-4dc8-be1c-23fce3b965bc as /dev/mapper/vg_svn_backup-lv_root
[code]....
I have a CSV file with 8 columns. I want to check the 5th column, which will contain a single capitalised letter. If that letter is say "B" I would then like to replace the 2nd column in the csv with an incremental number starting at 0 (basically a count) with a prefix of B (B0000001) Sample row would be:
Code:
C, 0109390,sfs,sfsf,B,blah,blah
Amended row would be:
Code:
C, B000001,sfs,sfsf,B,blah,blah
If I want to use that result to be saved in a variable, which type would it be in script? For clearing: let variable x and destination path is y/z
in prog.sh:
x=du -hb /y/z
echo $x
Q1: What type of x?
Q2: What option instead of -hb to presedent the size in kib?
I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?
View 1 Replies View RelatedI just installed Fedora 12. When I boot, only the following three lines are printed: pnp 00:09: can't evaluate _CRS: 12298 ACPI: Expecting a [Reference] package element, found type 0 Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) I first installed Fedora using a RAID 1 setup that mirrored each partition, so I thought the problem was coming from GRUB and confusion from what to boot off of. However, I reinstalled Fedora using a simple single drive setup (left the second drive without any partition), and the same error was returned. Is this an ACPI issue with this particular motherboard/BIOS? Any ideas for how I can fix this?
View 1 Replies View RelatedI am working at a client who has a project where code is a mixture of different source control systems. So a layout might be like this
project/a/.svn
/a/subfolder/.svn
/b/.hg
/c/subproject/.svn
/d/.hg
So I am trying to put together a simple command that when executed from the project folder will run the appropriate hg/svn command in each project i.e:
[Code]...
Since the client has many such projects, Instead I am looking for a solution similar to find -exec where the svn/hg commands are automatically executed on each first level of match (i.e. svn up is run in the project/a folder but not in project/a/subfolder). How can such a command be constructed ?.