You are not logged in.
Hello kind people on the internet. I did a system upgrade and then I restarted my computer and it said "failed to load kernel modules." this has happened before so I knew how to fix it. I downgraded my kernel to 5.6.7 which I was using prior to the system upgrade and it worked. My computer booted fine and I started up xorg but this time my xfce background image had changed and then I noticed I was using my intel graphics instead of the nvidia graphics. I try and switch it with optimus manager but it says it doesn't work on this version of the kernel(I forgot the exact message) so I uninstall optimus manager and reinstall it again but now I get an error saying
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20200515T175609.log
Cannot execute command because of previous errors.
here is the contents of the log file
https://pastebin.com/z3vVDAyp
thank you for taking the time out of your day to help me
Offline
Don't do partial upgrades (and downgrading the kernel without conisdering the other kernel modules like nvidia and bbswitch counts here). Ensure your boot partition is mounted and update the entire system then boot back into the new kernel.
Last edited by V1del (2020-05-15 16:32:41)
Online
Don't do partial upgrades (and downgrading the kernel without conisdering the other kernel modules like nvidia and bbswitch counts here). Ensure your boot partition is mounted and update the entire system then boot back into the new kernel.
I did all that but optimus manager still doesn't run but this time I get a different error message, what can I do to fix this?
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Offline
Hey,
I would recommend you to update your mirrorlist and try a full system upgrade again after that.
Might be that the mirror you use is not completely synced and you miss an upgraded package because of that.
I already had things happening like there is a new nvidia driver but the belonging kernel is missing because of unsynced mirrors.
Greetings
Last edited by Iruvinza (2020-05-15 20:42:40)
Offline
I actually did a new install of arch(I've been meaning to duel boot with windows) and I didn't have issues with it but I get the same error message when I run optimus-manager
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20200516T172801.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-mana … -gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-mana … leshooting
Cannot execute command because of previous errors.
can someone maybe tell me what Xorg post-start hook even is along with a solution to get nvidia drivers setup? doesn't have to be through optimus-manager
Offline
What is your current Display Manager?
Did you follow the links the error message gave you?
What does the log say now after the reinstall?
Offline
What is your current Display Manager?
Did you follow the links the error message gave you?What does the log say now after the reinstall?
I don't use a display manager. The second link said I should check some system logs and the only errors I found were in the Xorg logs which said I was missing some drivers like nv and vesa. I don't know if that's an issue or not, some people were saying it's not an issue.
The logs I got from previous install and current install is the same. optimus manager is saying Xorg post-start hook didn't run and that there are previous errors to optimus manager
Offline
Hi,
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20200516T172801.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-mana … -gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-mana … leshootingCannot execute command because of previous errors.
I got the same error message after updating to v1.3. No display manager as you. Solved it with the following work-around.
Before running
optimus-manager --switch <yourchoice>
I run
prime-offload
then
optimus-manager --switch <yourchoice>
then, after logging out,
sudo prime-switch
then I login and I run
prime offload
Actually, the work-around is just the first command. The rest is what I used to do with v1.2. As explained in https://github.com/Askannz/optimus-mana … leshooting.
Best
Offline
Hello,
I had the same problem after unexpected laptop shutdown (run out of battery). The problem was that in
/etc/optimus-manager/optimus-manager.conf
the switching mode was set to apci_call, and it worked fine for switching without rebooting, but spat out this error
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
when i tried to start the pc again.
The solution was to set switching to none
switching=none
linux 5.14
optimus-manager
I hope this reply would help someone
Offline
I hope this reply would help someone
It did help me 2 years later ! thanks
Offline