Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently updated from Debian Stable 8 to 9 and it is otherwise working very well. However, the suspend function in not working.
It seems to go to sleep in the usual manner with disk activity ceasing and CPU LED turn blinking from constant on mode. But when I press a key to wake it up, even though the disk activity restarts and LED turns persistently on, there is only a flicker of activity on screen. After that screen remains black and nothing appears (not even mouse cursor). I have to hard reboot to start up computer again.
The system also has a NVIDIA graphics card.
Earlier there was a swap partition declared in /etc/fstab and a /etc/initramfs-tools/conf.d/resume file (with uuid of same swap partition). Since suspend was not working, I removed swap entry in /etc/fstab and removed resume file. I now load the swap partitions by swapon command from rc-local service. I have swap working as seen by following outputs:
Code:
root@debian:/home/abcd# free
total used free shared buff/cache available
Mem: 4107832 633248 2399924 73792 1074660 3020824
Swap: 12141232 0 12141232
root@debian:/home/abcd# swapon -s
Filename Type Size Used Priority
/dev/sda7 partition 3999740 0 -1
/dev/sda15 partition 4052988 0 -2
/dev/sda19 partition 4088504 0 -3
But even now suspend is not working.
There was never a resume entry on grub linux (kernel) line.
Where could be the problem and how can I correct it?
I would try Ctrl-Alt-F1 or similar, probably that helps. Also you can try to log in on your console and restart your display manager, it is much faster than a reboot. You may need to check your logs too.
It's worth doing a quick check to see if you have a console at all or if it's just a video problem. When you put the caps lock down, does the caps lock light come on? Can you reboot with ctrl-alt-del?
If the answer to these questions is "yes", it's a video problem. You could try suspending with the various video quirks listed in the pm-utils database. I must admit I've tried them all singly on my laptop (which has a similar problem) and none of them worked. So far I haven't had the patience to try all the possible combinations.
The Caps and Num key were working, though control-alt-delete did not work when the screen was black following waking up from suspend. Control-alt-F1 gave me a terminal but control-alt-F7 brought back the black screen. I went back to terminal by control-alt-f1 and gave command 'sudo reboot'. At that time, the original graphics screen (from which suspend was called) came back for a few seconds and then the system rebooted. I believe this means video problem. Should I remove NVIDIA driver and use nouveau instead?
Quote:
@pan64 : you need not start X again, just check the logs.
Sorry to ask a basic question. Which log files should I check?
ok, so yes, you can try nouveau instead of nvidia.
you can go into /var/log and check messages, syslog, Xorg.0.log. Also you can go into users' home and check .xsession-errors.
On console you can restart your display manager (as root) and you do not need to reboot.
Right! It's video and, specifically, it's X. Your svga driver works. I wish I could say the same for my laptop!
The logs for X are in /var/log; unlike the other logs, they're not cumulative. Instead each session starts a new file. The current one is called Xorg.0.log. The previous one is Xorg.0.log.old. Those are the only ones that are saved. I suggest you use your console to save the current log under another name and post it here.
Other people can help you with the question of nouveau versus nvidia, but I don't remember seeing anyone express much enthusiasm for nouveau.
I removed NVIDIA driver and now nouveau has taken over. However, it is still not waking up from suspend.
Quote:
On console you can restart your display manager (as root) and you do not need to reboot.
How do I do this? I tried command 'sddm' and it only produced a blank screen. I had to hard reboot. I have actually installed 'nodm' package so that it logs in as a user without asking (so no login screen appears).
this file contains no related info.
You need to check your display manager, you can do something like this:
ps -ef | grep dm
You need to find a process like gdm, lightdm or similar and if you found you may try:
service gdm (or lightdm) restart.
I followed above suggestions and found that 'nodm' was being used. I was able to get back desktop using command "systemctl restart nodm". On logging out of this desktop, I was returned to original desktop.
What does it mean? Can I correct it so that I can get normal waking up from suspend situation?
After waking up > black screen > control-alt-F1 : Only following 2 lines were added to Xorg.0.log file:
Code:
[ 124.684] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 124.684] (II) NOUVEAU(0): NVLeaveVT is called.
Edit:
Other suspicious entries (marked as <<<<) in this file (at start):
Code:
...
[ 14.533] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. <<<<<<<<<<<<<<<<
[ 14.533] Entry deleted from font path.
...
...
[ 14.591] (II) LoadModule: "glx"
[ 14.592] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 14.773] (II) Module glx: vendor="X.Org Foundation"
[ 14.773] compiled for 1.19.2, module version = 1.0.0
[ 14.773] ABI class: X.Org Server Extension, version 10.0
[ 14.773] (==) Matched nouveau as autoconfigured driver 0
[ 14.773] (==) Matched nv as autoconfigured driver 1
[ 14.773] (==) Matched nouveau as autoconfigured driver 2
[ 14.773] (==) Matched nv as autoconfigured driver 3
[ 14.773] (==) Matched modesetting as autoconfigured driver 4
[ 14.773] (==) Matched fbdev as autoconfigured driver 5
[ 14.773] (==) Matched vesa as autoconfigured driver 6
[ 14.773] (==) Assigned the driver to the xf86ConfigLayout
[ 14.773] (II) LoadModule: "nouveau"
[ 14.775] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 14.821] (II) Module nouveau: vendor="X.Org Foundation"
[ 14.821] compiled for 1.19.3, module version = 1.0.13
[ 14.821] Module class: X.Org Video Driver
[ 14.821] ABI class: X.Org Video Driver, version 23.0
[ 14.821] (II) LoadModule: "nv"
[ 14.821] (WW) Warning, couldn't open module nv <<<<<<<<<<<<<<<<
[ 14.821] (II) UnloadModule: "nv"
[ 14.821] (II) Unloading nv
[ 14.821] (EE) Failed to load module "nv" (module does not exist, 0) <<<<<<<<<<<<<<<<
[ 14.821] (II) LoadModule: "modesetting"
...
...
[ 14.886] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 14.886] (II) FBDEV: driver for framebuffer: fbdev
[ 14.886] (II) VESA: driver for VESA chipsets: vesa
[ 14.887] (II) [drm] nouveau interface version: 1.3.1
[ 14.887] (WW) Falling back to old probe method for modesetting <<<<<<<<<<<<<<<<
[ 14.887] (WW) Falling back to old probe method for fbdev <<<<<<<<<<<<<<<<
[ 14.887] (II) Loading sub module "fbdevhw"
[ 14.887] (II) LoadModule: "fbdevhw"
[ 14.888] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 14.902] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 14.902] compiled for 1.19.2, module version = 0.0.2
[ 14.902] ABI class: X.Org Video Driver, version 23.0
[ 14.902] (WW) Falling back to old probe method for vesa <<<<<<<<<<<<<<<<
[ 14.902] (II) Loading sub module "dri2"
[ 14.902] (II) LoadModule: "dri2"
[ 14.902] (II) Module "dri2" already built-in
...
...
[ 18.063] (II) Using input driver 'libinput' for 'Power Button'
[ 18.063] (**) Power Button: always reports core events
[ 18.063] (**) Option "Device" "/dev/input/event3"
[ 18.063] (**) Option "_source" "server/udev"
[ 18.063] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[ 18.064] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[ 18.084] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[ 18.084] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 18.084] (**) Option "xkb_model" "pc105"
[ 18.084] (**) Option "xkb_layout" "us"
[ 18.084] (II) input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard
[ 18.084] (II) input device 'Power Button', /dev/input/event3 is a keyboard
[ 18.085] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 18.085] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 18.085] (II) Using input driver 'libinput' for 'Power Button'
[ 18.085] (**) Power Button: always reports core events
[ 18.085] (**) Option "Device" "/dev/input/event2"
[ 18.085] (**) Option "_source" "server/udev"
[ 18.085] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[ 18.085] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[ 18.100] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2/event2"
[ 18.100] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
[ 18.100] (**) Option "xkb_model" "pc105"
[ 18.100] (**) Option "xkb_layout" "us"
[ 18.100] (II) input device 'Power Button', /dev/input/event2 is tagged by udev as: Keyboard
[ 18.100] (II) input device 'Power Button', /dev/input/event2 is a keyboard
[ 18.101] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event10)
[ 18.101] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.101] (II) This device may have been added with another device file.
[ 18.102] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event11)
[ 18.102] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.102] (II) This device may have been added with another device file.
[ 18.102] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event12)
[ 18.102] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.102] (II) This device may have been added with another device file.
[ 18.102] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event9)
[ 18.102] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.102] (II) This device may have been added with another device file.
[ 18.103] (II) config/udev: Adding input device Microsoft Microsoft Basic Optical Mouse v2.0 (/dev/input/event1)
[ 18.103] (**) Microsoft Microsoft Basic Optical Mouse v2.0 : Applying InputClass "libinput pointer catchall"
[ 18.103] (II) Using input driver 'libinput' for 'Microsoft Microsoft Basic Optical Mouse v2.0 '
[ 18.103] (**) Microsoft Microsoft Basic Optical Mouse v2.0 : always reports core events
[ 18.103] (**) Option "Device" "/dev/input/event1"
[ 18.103] (**) Option "_source" "server/udev"
[ 18.160] (II) input device 'Microsoft Microsoft Basic Optical Mouse v2.0 ', /dev/input/event1 is tagged by udev as: Mouse
[ 18.160] (II) input device 'Microsoft Microsoft Basic Optical Mouse v2.0 ', /dev/input/event1 is a pointer caps
[ 18.200] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:045E:00CB.0001/input/input1/event1"
[ 18.200] (II) XINPUT: Adding extended input device "Microsoft Microsoft Basic Optical Mouse v2.0 " (type: MOUSE, id 8)
[ 18.200] (**) Option "AccelerationScheme" "none"
[ 18.200] (**) Microsoft Microsoft Basic Optical Mouse v2.0 : (accel) selected scheme none/0
[ 18.200] (**) Microsoft Microsoft Basic Optical Mouse v2.0 : (accel) acceleration factor: 2.000
[ 18.200] (**) Microsoft Microsoft Basic Optical Mouse v2.0 : (accel) acceleration threshold: 4
[ 18.260] (II) input device 'Microsoft Microsoft Basic Optical Mouse v2.0 ', /dev/input/event1 is tagged by udev as: Mouse
[ 18.260] (II) input device 'Microsoft Microsoft Basic Optical Mouse v2.0 ', /dev/input/event1 is a pointer caps
[ 18.261] (II) config/udev: Adding input device Microsoft Microsoft Basic Optical Mouse v2.0 (/dev/input/mouse0)
[ 18.261] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.261] (II) This device may have been added with another device file.
[ 18.261] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event5)
[ 18.261] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.261] (II) This device may have been added with another device file.
[ 18.261] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event6)
[ 18.262] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.262] (II) This device may have been added with another device file.
[ 18.262] (II) config/udev: Adding input device HDA Intel PCH Line (/dev/input/event7)
[ 18.262] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.262] (II) This device may have been added with another device file.
[ 18.262] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event8)
[ 18.262] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.262] (II) This device may have been added with another device file.
[ 18.263] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[ 18.263] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[ 18.263] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[ 18.263] (**) AT Translated Set 2 keyboard: always reports core events
[ 18.263] (**) Option "Device" "/dev/input/event0"
[ 18.263] (**) Option "_source" "server/udev"
[ 18.263] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[ 18.263] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[ 18.292] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[ 18.292] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 9)
[ 18.292] (**) Option "xkb_model" "pc105"
[ 18.292] (**) Option "xkb_layout" "us"
[ 18.292] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[ 18.292] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[ 18.293] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
[ 18.293] (II) No input driver specified, ignoring this device. <<<<<<<<<<<<<<<<
[ 18.293] (II) This device may have been added with another device file.
[ 21.003] (II) NOUVEAU(0): EDID vendor "SAM", prod id 1596
...
...
I may mention that I can see videos all right on this system (including sound) using vlc application.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.