Scanner after hibernation/suspend

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

Scanner after hibernation/suspend

Postby Roken on Sat May 28, 2011 9:11 pm

OK, it took me an age to get hibernation and suspend working (there's an obscure BIOS setting on my MB that I'd never given a second though to, until I decided to change it "just for fun")

So anyway, now both work a treat, and I have the joyfulness of being able to shut down in a blink, and restart in another blink (STR is lovely).

From a cold boot, starting xsane is simple and quick, but if I start it after a resume it takes a good five minutes to detect the available devices (the devices it detects are the scanner, webcam, and one of my TV cards). The scanner is the scan part of an HP C4180 MFP. The printer works immediately after restart. I'm guessing that the problem is related to V4L2, and my reasons are twofold:

i. V4L devices generally have proven to be a little flakey after a resume
ii. I'm having to use a patched kernel in order to get my TV cards working at all. Having said that, I'm not convinced the patch is the problem since the same issue manifests itself on a .36 kernel which doesn't need the patch.

So the question is, is there anything I can do to resume with these devices good to go right away. It defeats the object somewhat if it takes longer to re-initialise devices after resume than a cold boot takes in the first place.
Kernel Linux Tex 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image
User avatar
Roken
Level 5
Level 5
 
Posts: 747
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK

Linux Mint is funded by ads and donations.
 

Re: Scanner after hibernation/suspend

Postby the3dfxdude on Sat Jun 11, 2011 12:31 am

Are you using bttv? After a cold boot, before you suspend, do a 'rmmod bttv' then suspend. After resume check your devices, and go ahead and do a modprobe bttv.

What patches are you applying for your v4l device?
the3dfxdude
Level 1
Level 1
 
Posts: 2
Joined: Sat Jun 11, 2011 12:28 am

Re: Scanner after hibernation/suspend

Postby the3dfxdude on Fri Jun 17, 2011 10:24 pm

Even if you don't have a bttv card, you still have a v4l tuner device. I think there is plenty in common in our hardware and having flakiness in v4l devices. I have a Gigabyte MA-770T-UD3P motherboard, with a Radeon 4670, Phenom II X4, a v4l tuner and have issues on resume and also noticed this is a regression from 2.6.37-rc1 and later. Can you share your loaded modules, lspci -v, and your kernel config so that I can narrow down where to look next?
the3dfxdude
Level 1
Level 1
 
Posts: 2
Joined: Sat Jun 11, 2011 12:28 am

Re: Scanner after hibernation/suspend

Postby Roken on Sat Aug 06, 2011 7:29 am

This went by the wayside for a while, owing to a number of other more pressing issues, so I hope you are still around.

Anyway, we can rule out the v4l patch as being the source of the problem. I'm currently running a 3.0.1 (self build) kernel and the patch isn't required from 3.0.0. Nor am I using bttv, so that rules that out too.

The problem does, however, still exist. Output of lspci is as follows:

Code: Select all
00:00.0 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a2)
   Subsystem: Giga-byte Technology Device 5001
   Flags: bus master, 66MHz, fast devsel, latency 0
   Capabilities: <access denied>

00:01.0 ISA bridge: nVidia Corporation MCP78S [GeForce 8200] LPC Bridge (rev a2)
   Subsystem: Giga-byte Technology Device 0c11
   Flags: bus master, 66MHz, fast devsel, latency 0

00:01.1 SMBus: nVidia Corporation MCP78S [GeForce 8200] SMBus (rev a1)
   Subsystem: Giga-byte Technology Device 0c11
   Flags: 66MHz, fast devsel, IRQ 11
   I/O ports at fc00 [size=64]
   I/O ports at 1c00 [size=64]
   I/O ports at 1c40 [size=64]
   Capabilities: <access denied>
   Kernel driver in use: nForce2_smbus

00:01.2 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
   Subsystem: nVidia Corporation Device cb84
   Flags: 66MHz, fast devsel

00:01.4 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
   Flags: 66MHz, fast devsel

00:02.0 USB Controller: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1) (prog-if 10 [OHCI])
   Subsystem: Giga-byte Technology Device 5004
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
   Memory at fe02f000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>
   Kernel driver in use: ohci_hcd

00:02.1 USB Controller: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1) (prog-if 20 [EHCI])
   Subsystem: Giga-byte Technology Device 5004
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
   Memory at fe02e000 (32-bit, non-prefetchable) [size=256]
   Capabilities: <access denied>
   Kernel driver in use: ehci_hcd

00:04.0 USB Controller: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1) (prog-if 10 [OHCI])
   Subsystem: Giga-byte Technology Device 5004
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23
   Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>
   Kernel driver in use: ohci_hcd

00:04.1 USB Controller: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1) (prog-if 20 [EHCI])
   Subsystem: Giga-byte Technology Device 5004
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
   Memory at fe02c000 (32-bit, non-prefetchable) [size=256]
   Capabilities: <access denied>
   Kernel driver in use: ehci_hcd

00:06.0 IDE interface: nVidia Corporation MCP78S [GeForce 8200] IDE (rev a1) (prog-if 8a [Master SecP PriP])
   Subsystem: Giga-byte Technology Device 5002
   Flags: bus master, 66MHz, fast devsel, latency 0
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
   I/O ports at f000 [size=16]
   Capabilities: <access denied>
   Kernel driver in use: pata_amd

00:07.0 Audio device: nVidia Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)
   Subsystem: Giga-byte Technology Device a022
   Flags: 66MHz, fast devsel, IRQ 22
   Memory at fe020000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>

00:08.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1) (prog-if 01 [Subtractive decode])
   Flags: bus master, 66MHz, fast devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
   I/O behind bridge: 0000c000-0000cfff
   Memory behind bridge: f7000000-faffffff
   Prefetchable memory behind bridge: fbf00000-fbffffff
   Capabilities: <access denied>

00:09.0 SATA controller: nVidia Corporation MCP78S [GeForce 8200] AHCI Controller (rev a2) (prog-if 01 [AHCI 1.0])
   Subsystem: Giga-byte Technology Device b002
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 40
   I/O ports at 09f0 [size=8]
   I/O ports at 0bf0 [size=4]
   I/O ports at 0970 [size=8]
   I/O ports at 0b70 [size=4]
   I/O ports at dc00 [size=16]
   Memory at fe026000 (32-bit, non-prefetchable) [size=8K]
   Capabilities: <access denied>
   Kernel driver in use: ahci

00:10.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   I/O behind bridge: 0000b000-0000bfff
   Memory behind bridge: fbe00000-fbefffff
   Prefetchable memory behind bridge: 00000000e0000000-00000000efffffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport

00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
   Flags: fast devsel
   Capabilities: <access denied>

00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
   Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
   Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
   Flags: fast devsel
   Capabilities: <access denied>
   Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
   Flags: fast devsel

01:07.0 Network controller: Ralink corp. RT2561/RT61 802.11g PCI
   Subsystem: Edimax Computer Co. Device 7128
   Flags: bus master, slow devsel, latency 32, IRQ 17
   Memory at faff8000 (32-bit, non-prefetchable) [size=32K]
   Capabilities: <access denied>
   Kernel driver in use: rt61pci

01:08.0 Multimedia audio controller: Creative Labs CA0106 Soundblaster
   Subsystem: Creative Labs Soundblaster X-Fi Xtreme Audio
   Flags: bus master, medium devsel, latency 32, IRQ 18
   I/O ports at cc00 [size=32]
   Capabilities: <access denied>
   Kernel driver in use: CA0106

01:09.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
   Subsystem: Hauppauge computer works Inc. Device 9601
   Flags: bus master, medium devsel, latency 32, IRQ 19
   Memory at f9000000 (32-bit, non-prefetchable) [size=16M]
   Capabilities: <access denied>
   Kernel driver in use: cx8800

01:09.1 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
   Subsystem: Hauppauge computer works Inc. Device 9601
   Flags: bus master, medium devsel, latency 32, IRQ 19
   Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
   Capabilities: <access denied>
   Kernel driver in use: cx88_audio

01:09.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
   Subsystem: Hauppauge computer works Inc. Device 9601
   Flags: bus master, medium devsel, latency 32, IRQ 19
   Memory at f7000000 (32-bit, non-prefetchable) [size=16M]
   Capabilities: <access denied>
   Kernel driver in use: cx88-mpeg driver manager

02:00.0 VGA compatible controller: ATI Technologies Inc RV730XT [Radeon HD 4670] (prog-if 00 [VGA controller])
   Subsystem: Hightech Information System Ltd. Device 2268
   Flags: bus master, fast devsel, latency 0, IRQ 42
   Memory at e0000000 (64-bit, prefetchable) [size=256M]
   Memory at fbee0000 (64-bit, non-prefetchable) [size=64K]
   I/O ports at bc00 [size=256]
   [virtual] Expansion ROM at fbe00000 [disabled] [size=128K]
   Capabilities: <access denied>
   Kernel driver in use: fglrx_pci

02:00.1 Audio device: ATI Technologies Inc RV710/730
   Subsystem: Hightech Information System Ltd. Device aa38
   Flags: bus master, fast devsel, latency 0, IRQ 41
   Memory at fbefc000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: HDA Intel


And my .config file for the kernel is attached. This is likely a little different than my earlier kernel builds owing to evolution of the kernel itself, but nothing that should make any difference to this issue.
Attachments
config.tar.gz
(22.55 KiB) Downloaded 26 times
Kernel Linux Tex 3.2.2-1 (64 bit) xfce , burg
Arch
ATI Radeon HD 4670, 1GB
OSS4
AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked)
8Gb RAM
Image
User avatar
Roken
Level 5
Level 5
 
Posts: 747
Joined: Fri Nov 19, 2010 4:55 pm
Location: Oldham, UK


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 5 guests