LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-11-2022, 02:46 PM   #1
Jason_25
Member
 
Registered: Nov 2001
Posts: 183

Rep: Reputation: 23
What is needed to disable USB ports when sleeping?


I am testing a Lattepanda Delta 3 and one of the primary reasons I got it was because it advertises the ability to power down the USB ports when asleep. Computers with this option are all over the place, some have the option, some do not.

I have turned on EUP support in the BIOS which is what I think should have done it. There is also a section under USB which has a setting for keeping USB ports turned on and that is disabled also. USB does not power down when asleep with Windows or Linux unfortunately.

This is very important to me to power down connected devices when the device is being transported around. As it is, I have to make a custom USB cord with a power switch and I hate making that and I hate using it. I am still stuck in USB debug mode with no promised land in sight.

I have also sent an email to Lattepanda support and it will be interesting to hear what they have to say.
 
Old 10-11-2022, 03:14 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Some reading about USB power management.
 
Old 10-11-2022, 03:58 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,291

Rep: Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672
I forget what the different states of sleep might be available. Not all bios's allow all the choices.
Think I then you go to apm acpi. Since this is new it might be a uefi deal.

Last edited by jefro; 10-11-2022 at 04:06 PM.
 
Old 10-11-2022, 05:26 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by Jason_25 View Post
This is very important to me to power down connected devices when the device is being transported around. As it is, I have to make a custom USB cord with a power switch and I hate making that and I hate using it. I am still stuck in USB debug mode with no promised land in sight.

I have also sent an email to Lattepanda support and it will be interesting to hear what they have to say.
I wonder at the need to leave usb devices plugged in when the laptop is powered down and being moved.
1. Unplugging the device powers it down regardless.
2. Leaving the device plugged in risks bumping the USB device or cord which can damage that device as well as potentially also damaging the laptop connector.
 
Old 10-11-2022, 05:37 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,541

Rep: Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225Reputation: 6225
http://docs.lattepanda.com/content/3...#auto-power-on

Code:
 Disabled 	Run: Enabled; Sleep: Enabled; Hibernate: Disabled; Shut Down: Disabled
Enabled means the USB port can output power; Disabled means the USB port can't output power.
If I understand the documentation with the Always On USB power BIOS setting, it is still enabled for run and sleep modes but disabled for hibernate and shutdown.

Last edited by michaelk; 10-11-2022 at 05:38 PM.
 
1 members found this post helpful.
Old 10-13-2022, 02:07 PM   #6
Jason_25
Member
 
Registered: Nov 2001
Posts: 183

Original Poster
Rep: Reputation: 23
I just heard back from Lattepanda support but needed to email them again about the sleep situation. I suggested adding the ability to power down USB ports when asleep. The Lattepanda does power down USB when in hibernate and shutdown. Thanks michaelk.

I just finished testing hibernate mode. This is the first time I have ever (intentionally) used it on a computer. It was painful to set up with all the conflicting tutorials. Here is a hint: do not put .. after swap offset numbers. Anyway it resumed fairly quickly in about 30 seconds. Turning on fast boot in BIOS might help. I was playing with fire and set the swap size to 2 GB even though the system has 8 GB RAM and it works! This is hibernation without systemd by the way.

References:
https://wiki.archlinux.org/title/Pow...te#Hibernation
https://unix.stackexchange.com/quest...-line-s4-state
https://www.linuxuprising.com/2021/0...on-ubuntu.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB 2.0 ports won't work on my Gigabyte GA-970A-DS3P FX motherboard. USB 3.0 ports work great. myusb2.0portswon'twork Linux - Hardware 1 03-25-2019 04:23 AM
LXer: USB 2.0, USB 3.0 And USB Type C – USB Ports Explained LXer Syndicated Linux News 0 11-29-2017 04:40 PM
How do i disable USB ports in RedHat Linux? bboy-mass Linux - Hardware 7 10-20-2010 02:25 PM
USB 2.0 ports: devices not detected, but works fine with USB 1.1 ports (Kubuntu 6.06) KWTm Linux - Hardware 1 05-09-2007 05:42 AM
ports, ports, ports cjae Linux - Networking 1 04-09-2006 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration