LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2019, 07:20 AM   #1
Chucko
LQ Newbie
 
Registered: Jun 2018
Posts: 29

Rep: Reputation: Disabled
Suspend hangs when WinTV USB Tuner attached


My issue is similar to this post by chad126 and is being posted because his post remains unsolved.

I'm running Ubuntu 18.04 (Bionic Beaver) on a Dell N7010 laptop using a WinTV-HVR-955Q USB tuner stick. All software was installed from the default Ubuntu apt repositories. Almost everything is working as expected. I can use MythTV to watch live TV, tune channels, record and watch recorded shows. But suspend is not working.

In my case, any attempt to suspend appears to work, but the system simply hangs and cannot be awakened except through a hard power-off reboot accomplished by holding the power button for 10 seconds.

When I explicitly request suspend, or when I allow the configured idle time to expire and the laptop attempts to sleep itself, it hangs. The display goes black and the HDD spins down. But the box hangs at that point. The power lights remain lit-steady (rather than pulsating as they do during a "normal" sleep). Nothing will awaken the box -- keyboard, mouse, and power button activities have no effect. Power-off reset is the only option, from which the laptop will reboot normally.

With or without the USB tuner plugged in, the laptop will shutdown normally and restart without issue. And it sleeps and awakens normally when the USB tuner is not plugged in. But when the tuner is plugged in, once it has attempted to sleep, it's hung and requires a forced power-off restart.

I have examined /var/log/system.log and see no differences in logged events when suspend is requested with and without the USB stick plugged in.

After having booted with the USB tuner unplugged, if I plug it in; its various embedded devices appear in /dev/dvb/adapter0 but MythTV reports All tuners busy and MythTV doesn't work. But after rebooting the box or restarting the mythtv-backend service from that tuners busy state, with the USB stick remaining plugged in, all works as desired -- except sleep.

So plugging the stick in after first-boot requires me to manually restart the services that are trying to use it. And once it's plugged in, the system will not suspend (or, at least, cannot awaken from suspend).
 
Old 11-12-2019, 11:38 AM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi Chucko,

I think you yourself have put your finger on the issue : the service for MythTV is preventing the system from successfully going through a suspend-resume cycle. This is a common occurrence for all sorts of reasons - often even caused by something as ubiquitous as WiFi adapters.

Since you've figured out yourself that the system suspends and resumes properly if you at first stop the MythTV service, then that is simply what I would do. Stop the service - suspend - resume - start the service. If you don't like doing this manually, you could create a script incorporating these steps and have it execute automatically when suspending.

Hope this helps - Cheers.
 
1 members found this post helpful.
Old 11-22-2019, 02:01 PM   #3
Chucko
LQ Newbie
 
Registered: Jun 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled
Rickkkk: Thanks. Sorry for the late response. My email service shuttled the notification to me about your response into my spam folder and I'm only just now seeing it. Anyway, I'll work on some sort of a script to coordinate stopping and restarting the backend with suspending the box. I'm a bit surprised, though, that I'm the only one with this issue. I guess I'm just special!
 
Old 11-22-2019, 02:12 PM   #4
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Chucko View Post
Rickkkk: Thanks. Sorry for the late response. My email service shuttled the notification to me about your response into my spam folder and I'm only just now seeing it. Anyway, I'll work on some sort of a script to coordinate stopping and restarting the backend with suspending the box. I'm a bit surprised, though, that I'm the only one with this issue. I guess I'm just special!
... You may not be the only person with this issue ... Suspend-resume issues vary greatly depending on hardware, distro, kernel version, systemd or not, which services running, attached peripherals .. Bottom line - few situations are identical.

Hope you get it configured to your satisfaction !
 
  


Reply

Tags
drivers, kernel, suspend, ubuntu 18.04, usb



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
Tv Tuner (Hauppage WinTV quadHD) stops working after suspend and I can't unload/reload the driver. chad126 Linux - Kernel 4 10-04-2018 03:52 PM
WinTV 150 / WinTV 250 - Are They Interchangable? rrrssssss Linux - Hardware 5 01-26-2006 05:42 PM
WinTV 150 / WinTV 250 - Are They Interchangeabe? rrrssssss Linux - Hardware 1 01-23-2006 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 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