leemckusic
March 12th, 2018, 07:25 AM
I am writing to ask if anybody can tell me a grub boot parameter to stop the graphics adapter from being turned off when the computer is not touched for a period of time. What I believe is happening is the Power Management timer in the Linux kernel is turning off the graphics display and additionally the same event is switching off the USB keyboard.
Thanks everybody. My eight or ten year old Wind PC has always run Ubuntu. Some kind of trick web page really screwed up my 64 bit Ubuntu LTS. For the past three weeks I have been trying to re-install Ubuntu and most importantly save my /home partition. The good news is I plugged in a 2 Terabyte $65 USB backup drive and I backed up /home.
The bad news is my system is being plagued with USB keyboards that disappear and a graphics display that disappears together with disappearing the USB keyboard too. I have been forced several times to shut the computer off with the power switch, which in turn requires manually running fsck to repair the damage to the file system.
Here is my guess as to what is happening.The Linux Kernel has power management and it is intended that the kernel can be compiled with different levels of power control so that computers can extend battery life by shutting down peripherals.
https://www.kernel.org/doc/html/latest/driver-api/usb/power-management.html
To prevent the kernel from shutting down USB devices, you can add usbcore.autosuspend=-1 to the kernel boot line. In the grub boot loader press "e" and scroll down to
vmlinuz.....1b3df usbcore.autosuspend=-1 ro quiet etc
As long as I use the keyboard (and after running fsck to fix damaged disk partitions from the power switch shutdown) the computer is OK. If I leave the computer running over night, the display goes blank and the keyboard shuts down.
The thing I think is going on is called in the Linux Kernel manual Power Management. What I can't find in the Linux Kernel documentation is an explanation of how to stop the Kernel from shutting down my display adapter because the display adapter code shuts down the USB keyboard also.Or: where is the Ubuntu control instructions located.
Thanks everybody. My eight or ten year old Wind PC has always run Ubuntu. Some kind of trick web page really screwed up my 64 bit Ubuntu LTS. For the past three weeks I have been trying to re-install Ubuntu and most importantly save my /home partition. The good news is I plugged in a 2 Terabyte $65 USB backup drive and I backed up /home.
The bad news is my system is being plagued with USB keyboards that disappear and a graphics display that disappears together with disappearing the USB keyboard too. I have been forced several times to shut the computer off with the power switch, which in turn requires manually running fsck to repair the damage to the file system.
Here is my guess as to what is happening.The Linux Kernel has power management and it is intended that the kernel can be compiled with different levels of power control so that computers can extend battery life by shutting down peripherals.
https://www.kernel.org/doc/html/latest/driver-api/usb/power-management.html
To prevent the kernel from shutting down USB devices, you can add usbcore.autosuspend=-1 to the kernel boot line. In the grub boot loader press "e" and scroll down to
vmlinuz.....1b3df usbcore.autosuspend=-1 ro quiet etc
As long as I use the keyboard (and after running fsck to fix damaged disk partitions from the power switch shutdown) the computer is OK. If I leave the computer running over night, the display goes blank and the keyboard shuts down.
The thing I think is going on is called in the Linux Kernel manual Power Management. What I can't find in the Linux Kernel documentation is an explanation of how to stop the Kernel from shutting down my display adapter because the display adapter code shuts down the USB keyboard also.Or: where is the Ubuntu control instructions located.