LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Deepin (https://www.linuxquestions.org/questions/linux-deepin-101/)
-   -   Deepin OS Boot ... stuck in emergency mode on reboot or system switch ON !!! (https://www.linuxquestions.org/questions/linux-deepin-101/deepin-os-boot-stuck-in-emergency-mode-on-reboot-or-system-switch-on-4175615093/)

aiamuzz 10-05-2017 05:53 AM

Deepin OS Boot ... stuck in emergency mode on reboot or system switch ON !!!
 
Hi,

I am in the 2nd week of having installed the Fantastic "Deepin OS 15.4.1 Desktop" on my "HP Elitebook 2570[" ... and i am loving every moment of it.

However i seem to face a rather irritating situation every time i reboot or start the machine. (i for the most part keep laptop in suspended mode for days on end) ... of the very little times i do reboot or switch ON ... i encounter this annoying OS booted in emergency mode ... giving a few command opitons 'jounalctl -xb' to view or 'systemctl reboot' to reboot or 'systemctl default' or Ctrl+D to to boot normally. the last boot message shows as

[96.453770] bbswitch : No discrete VGA device found.

when i hit Ctrl+D the machine seems to freeze with the deepin boot animation. i hit escape it goes back an forth to the VGA message and the Deepin boot animation.

Ctrl+Alt+Del .. restarts the machine and if i am lucky will boot into the OS succefully or go back into the same state as described below.

Please do let me know if you want me collect system(boot, syslog) data ... first thing after i successfully login to the OS in between the described issue (emergency mode)

thank.s

linux-sys-adm 10-05-2017 10:04 AM

Sounds like your laptop has two video cards. Is this some sort of gaming latop with Intel + Nvidia or or GPU?

Deepin, I need to give a try, maybe. Very hesitant for obvious reasons since this is my daily driver.

Also see: https://github.com/Bumblebee-Project/bbswitch
The (issues section). You can also try blacklisting during boot. (see that section on that page)

aiamuzz 10-05-2017 12:15 PM

I guess not its only got the Integrated Graphics

the following command should give you a better picture.

$ lspci | grep -i --color 'vga\|3d\|2d'

Code:

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
If i follow the below guide from the link you provided, will it cause problems to the graphics card listed above ?

Code:

Disable card on boot

These options can be useful to disable the card on boot time. Depending on your distribution, /etc/modules, /etc/modules.conf or some other file can be used to load modules on boot time. Adding the below line to the file makes the card get disabled on boot:

bbswitch load_state=0
Users of kmod should create /etc/modprobe.d/bbswitch.conf containing options bbswitch load_state=0 to set the default options. To load the module, systemd users should create /etc/modules-load.d/bbswitch.conf containing bbswitch.

You have to update your initial ramdisk (initrd) for the changes propagate to the boot process. On Debian and Ubuntu, this can performed by running update-initramfs -u as root.

Enable card on shutdown

Some machines do not like the card being disabled at shutdown.
Add the next initscript (/etc/init/bbswitch.conf) :

description "Save power by disabling nvidia on Optimus"
author      "Lekensteyn <lekensteyn@gmail.com>"
start on    runlevel [2345]
stop on    runlevel [016]
pre-start  exec /sbin/modprobe bbswitch load_state=0 unload_state=1
pre-stop    exec /sbin/rmmod bbswitch


aiamuzz 10-05-2017 03:13 PM

2 Attachment(s)
Update : the above disabling of bbswitch didn't have any effect on the issue i am facing.

I am uploading 2 log files ... one is from the emergency mode shell and the other one is after i was able to login to the OS after hitting Ctrl+D ... after i hit Ctrl+D the system stalls at the message
Code:

"[96.453770] bbswitch : No discrete VGA device found."

I have to hit Ctrl+Alt+Del at this point and the system reboots.

Hope the system log's help identify the real issue for my system booting into emergency mode ever so often.

thanks.


All times are GMT -5. The time now is 12:33 PM.