Debian Hardware :: Disabling Laptop Lid-close Action
Dec 17, 2011
Dell Latitude C610 laptop with Debian Squeeze.I am using the computer as a print and file server, accessing it with ssh, so I don't need the display (which is busted anyway). I want to close the lid without having the computer suspend. Could not find a way to make it happen with gnome-power-preferences or the BIOS settings. There is a script, /etc/acpi/lid.sh, that runs when the laptop lid switch changes. Part of the script is shown here:
Code: Select allgrep -q closed /proc/acpi/button/lid/*/state # this is a file of 1 line like "state: open" or presumably "state: closed"
if [ $? = 0 ] # The brackets evaluate to True when the lid is closed.
then
if [ x$LID_SLEEP = xtrue ]; then
[ -x /etc/acpi/sleep.sh ] && /etc/acpi/sleep.sh # i.e., if this file exists, then run it.
exit
fi
... there's more ...
The stuff that gets executed after the if [ #$ = 0 ] is the stuff that suspends the computer. So I just replaced the brackets with something that is certain to be false, so it will never happen:
Code: Select allif [ 1 = 2 ]
I admit this is FAR from an elegant solution, but it seems to work and it doesn't fubar the system.
View 3 Replies
ADVERTISEMENT
Aug 28, 2014
I have a HP Pavilion Dv71245dx Laptop running Debian Wheezy, which has been alright so far except for the mouse wheel built into the right side of the touch mousepad. It's positioned in such a way that makes my thumb hit it all the time by accident while typing, and it's been a total nightmare. I would just like to disable the scroll wheel feature on this mousepad entirely, but I would like to do so in such a way that I can still use the scroll wheel on my USB mouse whenever I have that plugged in.
View 2 Replies
View Related
Mar 31, 2016
I'm using xfce, and the power manager settings, to only lock the screen when close, are not honored. The laptop suspends, no matter what, when closed. Is there a way to forcibily only allow xfce power manager to handle the close lid behavior?
View 2 Replies
View Related
May 6, 2011
I've just installed 10.04 on a Samsung RV511 laptop. No problems and much, much better than the Windows 7 it came with. But I do have just a little niggle. I can disable the touchpad with 'modprobe -r psmouse' after I've logged in, but I would like this to happen automatically at startup. I've tried putting the above code in the home folder .bashrc, but I get this error message: FATAL: Error removing psmouse (/lib/modules/2.6.32-31-generic/kernel/drivers/input/mouse/psmouse.ko): Operation not permitted Do I need to write a bash script file? Or how else can I get the code to run as I want?
View 9 Replies
View Related
May 30, 2011
In Ubuntu 10.10 Gnome . When I close the laptop lid I seem to get only two choices - hibernate or suspend. What i want is when i close the laptop lid I want nothing to happen.
There are real issues I'm having with network-Manager stopping and not starting when i go into suspend. it's a major hasle therefore I want to prevent any suspend or hibernate.
How do i do it so closing the lip just closes the lid and nothing else?
View 3 Replies
View Related
Apr 13, 2011
Upgraded to Ubuntu 10.10 recently. (Now that was a mistake...) Problem occurring now that when I close lid of my laptop (Asus K40IN series) , which I set to suspend, it won't wake up (and I have to shut down and reboot). It used to be fine (in both Windows and 10.04) though so must've something to do with the upgrade to 10.10.
View 2 Replies
View Related
Jun 14, 2011
I have done a fresh install of Ubuntu 11.04. My problem is that at the login screen if I close my laptop lid, the laptop goes into suspend. This is not the effect I want. GDM doesn't respect my settings in gnome-power-preferences and I can't seem to locate any other way to configure the power preferences for GDM. I have had 11.04 installed before as an upgrade to 10.10 and I did not have this problem in that case.
View 1 Replies
View Related
Jul 24, 2011
I've tried to look this problem up on Google but I haven't found much consensus on what to do. I have the HP g6-1070us
View 3 Replies
View Related
Mar 18, 2010
I am using ubuntu 9.10 and when i close the lid of the laptop it does not hibernate or suspend?
what do i do?
View 1 Replies
View Related
Sep 15, 2010
So I was reading this thread on internet privacy and decided to 'upgrade' my system. I installed privoxy and tor and chained them from squid so it looks like this: iceweasel >> squid >> privoxy >> tor. All is working well except when I go to edit my privoxy default.action file I get a fatal error. I've got version 3.0.9-1 The original line in the newly installed default.action file. #+hide-referer{forge}
I edited it by simply removing the #. +hide-referer{forge} Then:su -c '/etc/init.d/privoxy force-reload'And I get this in the logfile.Sep 14 16:41:36.260 Privoxy(7f4fa64756e0) Fatal error: can't load actions file '/etc/privoxy/default.action': first needed line (361) is invalid: +hide-referer{forge} I've even copy/pasted from the manual and to no avail.Have I been looking at to much text for the last two days?What am I missing?
View 1 Replies
View Related
Nov 16, 2010
I'm a Debian testing user (not an experienced one) on laptop Dell Latitude D531 and has encountered a problem: I've often got my laptop slowed down very much and the message appears in a console: Disabling IRQ #19 I've searched for the solution, but failed finding the answer.
dmesg showed:
Code:
[ 21.064461] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 21.067790] cfg80211: Calling CRDA for country: GB
[ 21.160654] padlock: VIA PadLock not detected.
[ 23.545837] fuse init (API version 7.13)
[ 24.354533] tun: Universal TUN/TAP device driver, 1.6
[Code]...
View 6 Replies
View Related
Mar 17, 2010
i seem to be having some issues with update-manager. all has been well for months since i installed etch. now, when i try to do an update, i get the error message :
W: Unbalanced action groups, expect badness [CRITICAL:UpdateManager.Backend.PythonApt] BrokenCount > 0 (1)! not sure where to go from here, i trawled some forums for an answer and tried : sudo dpkg --clear-avail && sudo apt-get update and : sudo rm /var/lib/dpkg/available to no avail. here's a copy of my sources.list just in case [URL]
View 9 Replies
View Related
Apr 7, 2010
Let me quickly state that I am returning to Debian after quite a long break. I am trying to relearn some things. I suppose I'm somewhat old school. As in I originally installed from rawright, back in the days when you had to do practically everything by hand. I was quite happy with config and make. I actually learned a ton back then, as I started out knowing nothing. I guess I can learn to catch up with the modern linux world.
Anyway here is my question? In the old days if I wanted something not to be mounted I would simply comment out the entry in /etc/fstab. I notice that my USB drive is mounted but does not appear in the fstab. It is in mtab, and lsusb does show it.
If I wanted to secure a system, but not totally remove usb support from the kernel, how would I prevent the automounting of USB drives? What are the configuration files that govern their operation?
View 1 Replies
View Related
May 18, 2010
Whenever I open a folder with the default browser (Nautilus), it does a quick scan of the contents. This is not a problem for normal folders, but it becomes one when a music folder contains several thousand files (I haven't yet tried with folders containing large amounts of non-music files). In such instances Nautilus sits there scanning and I can hear the hard drive seeking for a good while before it presents me with the contents of said folder. My music folder, for instance, contains some five thousand ogg files, and I have to wait *counts* a full minute before it displays its contents. I tried telling it to never count the number of files in the options, but it didn't help. So far, the only solution I've found is to use pcmanfm instead, which apparently does no scan and displays my music folder practically as soon as I click on it. Still, I like Nautilus more for everything else, so I'd much rather use that instead.
View 6 Replies
View Related
May 20, 2011
I have an ATI Radeon 5850 card with 2 17" monitors, plus a 46" TV via HDMI (disabled, except for BD plaback under windows) under Debian 6.0/Squeeze. When I first installed this system, it worked fine with all 3 screens (only 2 enabled at a time). Sometime in the past few weeks though, it's decided to revert to a single-display setup. I can't find any errors in the logfiles, and it works perfectly fine when I re-enabled the secondary display via the ATI Catalyst Control center.
The auto-generated xorg.conf isn't configured to use the second display (even after re-generating one using "aticonfig -initial=dual-head"), and it is not being modified when I change settings in the Catalyst Control Center.Updating display settings after every boot is just a bit annoying.
View 2 Replies
View Related
Jan 27, 2011
I have a Debian computer with 2 network interfaces. Ath0 for wifi and eth0 for cable.
They're configured as dhcp and are getting their ip from different routers. When I shut down one of the router, it takes 5 minutes for the ip address to "Go away". I would like this to take a shorter time. I figured it must be a setting, but my attempts so far have been unsuccessfull. Is there a way to do this?
I'm using dhcp3-client (dhclient) as my client.
View 4 Replies
View Related
May 1, 2011
I am turning my old laptop into a simple desktop. I have Ubuntu 11.04 working on it great, but now I want to do this now. Please help me. I love Ubuntu, but I am new to linux and need help. If you ask me to do something in Windows, I will most likely know how to do it. But not with linux.
View 3 Replies
View Related
Jul 17, 2011
I'm trying to stop all boot time messages from appearing -- basically I'd like to have a simple blank screen from grub to xdm.
I tried everything -- used the "quiet" option in grub's config, added dmesg -n 1 to rc.local, changed console=ttySx, set kernel.printk in sysctl.conf to 4 1 1 7, and even eradicated rsyslogd altogether... to no avail. I still see all sorts of messages on my screen.
View 1 Replies
View Related
Jul 21, 2015
Due to some reason every-time I boot the laptop the power governors reset themselves to "ondemand". Which causes my laptop to overheat until it shut-downs. I tried adding this line to grub Code: Select allGRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable" which kinda worked, but only on cpu 0.
Code: Select allcpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: acpi-cpufreq
[code]....
View 3 Replies
View Related
Jan 30, 2011
I know that I can use the GUI (gnome-volume-properties) enable/disable the USB sticks/disks automount features, by checking/unchecking the pertinent options.My question is: how can I obtain the same results from the command line (that is, without using any GUI frontend)?
View 5 Replies
View Related
Jul 6, 2011
I'm building a Debian Live system, [URL], and I've pared it down to a very light distro. It is using the IceWM, has the basic linux commands, and very very little else.
When I run "top" and "ps aux", I see that I have multiple terminals and logins waiting to be used. It's a small amount, but I'd like to make that RAM usable elsewhere. The indicated commands are: "/bin/login -f" and "-bash", and I have one of each associated with each tty[1-7]. I may want to keep tty1 and tty2, just in case, but I can't imagine wanting 3-7.
So, what I'm looking for is a way to stop tty[3-7] from even starting in the first place.
I saw on one forum the suggestion of modifying the /etc/init/tty[1-7].conf files, but these files aren't present, I presume because it's a "Live" system.
View 5 Replies
View Related
Jul 24, 2015
In Debian 8.1 with KDE, I don't find how to disable the automatic resizing of windows when the mouse drags a window to screen edges; seems that this function is called "aero snap".
I would like to disable this aero snap function.
View 2 Replies
View Related
Apr 1, 2011
While searching the net I found how to complete disable the functionality of the middle mouse button but I need this button for many other uses.I want to disable only it's paste action.
View 2 Replies
View Related
Jan 24, 2016
I would like to make iceweasel to restart after close, so its always running.
View 14 Replies
View Related
May 17, 2010
at a particular spot on your screen on Debian Lenny xfce4 64 bit?
View 6 Replies
View Related
Oct 20, 2015
I have installed Debian Jessie (<-- brilliant OS ) on my uncles Laptop (it is a Thinkpad E540) with Cinnamon as desktop environment. The installation was no problem. Everything apart from one minor thing works nicely. The minor thing however is the following:
I don't know what it is, but when I don't use a particular usb port for a while and then try to plug in a usb stick or a wacom tablet, it doesn't get recognized, it doesn't show up when I use f.e. Code: Select alllsusb. When I close the lid of the laptop and open it again, then the particular usb device gets recognized and cinnamon asks me what to do, f.e. open a folder and show the content of the usb stick I have plugged in. Because of the success on two other laptops I use the following
Code: Select all# /etc/systemd/system/powertop.service
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/sbin/powertop --auto-tune
Environment="TERM=xterm"
[Install]
WantedBy=multi-user.target
to save power on the Thinkpad (this is in no way my service script, I tuned everything using powertop in the terminal after having had logged in, the script above stems from a brilliant user here on the forum). Could it therefore be autosuspend that is not working properly here?
View 3 Replies
View Related
Jul 20, 2015
So I have this laptop with a busted battery, I'm trying to get it into some kind of headless server, media topbox hybrid.
First thing I want to do is being able to leave it shut (powered on) in the corner without having to interact with it directly.
I've setup ssh and vnc so to login remotely and do task, transfer files and etc.
However there is a little issue with the laptop lid down upon turning it on, it immediately goes into suspend when getting to the display manager, which is 'lightdm'.
I suppose this is the default setting for Xorg and as such my custom configs for KDE only kick in after I login.
Question is: I never seen configuration for default power management stuff being done in Xorg, is there some way to disable automatic suspension on lid down?
Another question is: After the KDE kicks in does it always replace power options? I have setup a xorg.conf file specifying dpms options but these don't seem to remain.
View 11 Replies
View Related
Aug 18, 2015
I bought a hp envy x360, and I have installed debian 8.1 and I have some problems with GNOME.
I am running session and it works fine, but after some time it is closed suddenly and after I can't start session.
View 0 Replies
View Related
Nov 2, 2015
Where is now, in new Debian systems, the internal text file where the
adequate medium (live systems recognize a medium /dev/sdb1 if I connect my phone tablet)
has to be present if used?
Is a special procedure to be use to mount, open, read, close and unmount them properly?
View 1 Replies
View Related
Nov 2, 2015
System is a Dell E7440, with Jessie, I recently upgraded to kernel 4.2.5 due to issues with wireless that are supposed to be fixed. (The same issue exists with jessie stock kernel 3.16 and BPO tough)
When I close the lid it often does not work and I get this in dmesg
Code: Select all[ 567.104335] pci_bus 0000:01: Allocating resources
[ 567.104349] pci_bus 0000:02: Allocating resources
[ 567.104415] pci_bus 0000:03: Allocating resources
[ 567.104428] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 567.105515] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 567.105540] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 567.105585] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[Code] ....
I suppose the i915 stuff is something I can ignore, However
Code: Select all[ 570.768020] acpi device:40: Cannot transition to power state D3hot for parent in (unknown)
seems to be the issue.. I don't even know what device:40 is.
in ls -l it shows as
Code: Select all lrwxrwxrwx 1 root root 0 Nov 2 12:28 device:40 -> ../../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C6:00/device:40
and
Code: Select all# cat /sys/bus/acpi/devices/device:40/path
\_SB_.PCI0.SDHC.WI01
The awkward thing is tough, software suspend by running "systemctl suspend" works perfectly and always.
Code: Select all [ 872.054627] PM: Syncing filesystems ... done.
[ 872.091506] PM: Preparing system for sleep (mem)
[ 872.092045] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 872.093377] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 872.094563] PM: Suspending system (mem)
[ 872.094595] Suspending console(s) (use no_console_suspend to debug)
[Code] ....
So despite the mysterious issue with acpi device 40, how is real lid close different from "systemctl suspend"? And can I simply workaround the issue by making such a suspend when the lid closes?
View 2 Replies
View Related