Author Topic: No USB whilst on battery??? [SOLVED]  (Read 3116 times)

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: No USB whilst on battery???
« Reply #15 on: June 04, 2012, 09:31:21 AM »
I will.
btw. how did you discover that the problem was the laptop tools app?
John
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: No USB whilst on battery???
« Reply #16 on: June 05, 2012, 03:00:31 AM »
richiereyn,
Install the 3.2.18 kernel (in testing section) and reinstall laptop-mode-tools. Reboot. First boot will take longer than usual boot up as drivers must compile against the new kernel.     

Does the problem persist?     

Offline richiereyn

  • Jr. Member
  • **
  • Posts: 47
Re: No USB whilst on battery???
« Reply #17 on: June 06, 2012, 10:55:22 AM »
Johnmart:

I discovered it was laptop-mode-tools by doing a fresh install and then updating and noting the packages that got updated. Laptop-mode-tools was the obvious one, so I uninstalled it and the problem went away.

Offline richiereyn

  • Jr. Member
  • **
  • Posts: 47
Re: No USB whilst on battery???
« Reply #18 on: June 06, 2012, 11:09:08 AM »
richiereyn,
Install the 3.2.18 kernel (in testing section) and reinstall laptop-mode-tools. Reboot. First boot will take longer than usual boot up as drivers must compile against the new kernel.     

Does the problem persist?     

Neal ManBear,

I've added testing and upgraded the kernel to the one you suggest above (bfs kernel version) and reinstalled laptop-mode-tools. The symptoms are identical to before. No USB on battery, fine on mains. I haven't done a full upgrade to testing because I don't really want to upset things too much on this laptop by running possible unstable software.

Rich..

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: No USB whilst on battery???
« Reply #19 on: June 06, 2012, 01:41:46 PM »

I haven't done a full upgrade to testing because I don't really want to upset things too much on this laptop by running possible unstable software.


Wise decision. Never do a full upgrade with testing enabled. It's a great way to bork your system.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: No USB whilst on battery???
« Reply #20 on: June 06, 2012, 10:33:59 PM »
richiereyn,
Install the 3.2.18 kernel (in testing section) and reinstall laptop-mode-tools. Reboot. First boot will take longer than usual boot up as drivers must compile against the new kernel.     

Does the problem persist?     
Persists for me & uninstalling laptop-mode-tools fixed it.  :)
[john@localhost ~]$ uname -a
Linux localhost.localdomain 3.2.18-pclos1.bfs
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline rekabe

  • Full Member
  • ***
  • Posts: 107
  • /Universe/SolarSystem/Earth/Jamaica
Re: No USB whilst on battery???
« Reply #21 on: June 07, 2012, 08:26:53 PM »
Same problem here with a usb wifi dongle. I was having internet connection issues . Uninstalling laptop-mode-tools fixed the problem.
Good thing I checked the forum I was about to give the dongle a bad review on Amazon.

Offline Talisman

  • Jr. Member
  • **
  • Posts: 23
Re: No USB whilst on battery???
« Reply #22 on: June 07, 2012, 10:46:51 PM »
Similar problem on a Toshiba Satellite Pro S300.  If I plug a USB device in while the power is connected, it will continue to function when I disconnect and run off of the battery.  Anything I plug in while running from battery does not work until I connect to power.

I first noticed this behavior a couple days ago.

Offline jlf001

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 519
Re: No USB whilst on battery???
« Reply #23 on: June 10, 2012, 08:34:53 AM »
As root, edit the file, /etc/laptop-mode/conf.d/usb-autosuspend.conf to turn off the suspend function, while on battery power. See the usb-autosuspend.conf file for details.

Jeff

P.S. This also fixed a problem I was having with a USB SD card reader.  While on battery, I could not access the card.
« Last Edit: June 10, 2012, 08:42:28 AM by jlf001 »

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: No USB whilst on battery???
« Reply #24 on: June 10, 2012, 10:31:17 AM »
As root, edit the file, /etc/laptop-mode/conf.d/usb-autosuspend.conf to turn off the suspend function, while on battery power. See the usb-autosuspend.conf file for details.
Oooh, cool. I reinstalled laptop-mode-tools & will give this a try, & rport back.
Thanks Jeff

Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: No USB whilst on battery???
« Reply #25 on: June 10, 2012, 11:28:31 AM »
I can confirm this. As a workaround, you can open /etc/laptop-mode/conf.d/usb-autosuspend.conf and either blacklist your devices or set BATT_SUSPEND_USB=0 to turn off usb suspension altogether. Restart laptop mode in PCC or with service laptop-mode restart in a root console, or reboot.

This means USB will not be powered down when not in use. A proper fix would involve investigating why it stays powered down when it should be in use, but I don't know enough about how it works to do that.

(Oops, there's an echo in the room - sorry, jif001, didn't notice you'd already suggested it!)
« Last Edit: June 10, 2012, 12:21:20 PM by kjpetrie »
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline jlf001

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 519
Re: No USB whilst on battery???
« Reply #26 on: June 10, 2012, 01:06:55 PM »

(Oops, there's an echo in the room - sorry, jif001, didn't notice you'd already suggested it!)


Not a problem kjpetrie.  Have a great day,

Jeff

Offline johnmart

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1105
  • Make Love Not War
Re: No USB whilst on battery???
« Reply #27 on: June 10, 2012, 10:19:40 PM »
As root, edit the file, /etc/laptop-mode/conf.d/usb-autosuspend.conf to turn off the suspend function, while on battery power. See the usb-autosuspend.conf file for details.
I can confirm this. As a workaround, you can open /etc/laptop-mode/conf.d/usb-autosuspend.conf and either blacklist your devices or set BATT_SUSPEND_USB=0 to turn off usb suspension altogether. Restart laptop mode in PCC or with service laptop-mode restart in a root console, or reboot.

This means USB will not be powered down when not in use. A proper fix would involve investigating why it stays powered down when it should be in use, but I don't know enough about how it works to do that.
Well these fixes worked for me.
The usb-autosuspend.conf file mentions that many usb devices don't implement the suspend function correctly. Disabling suspend works for me.
Thanks
John
Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho

Offline richiereyn

  • Jr. Member
  • **
  • Posts: 47
Re: No USB whilst on battery???
« Reply #28 on: June 11, 2012, 06:08:07 PM »
I can confirm also that BATT_SUSPEND_USB=0 solves the problem :)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: No USB whilst on battery???
« Reply #29 on: June 11, 2012, 06:12:51 PM »
An updated laptop-mode-tools has been sent to repo.