You are not logged in.
I have 2 graphic cards, one is intel and the other is nvidia. I disabled nvidia driver (blacklist the nouveau driver), and enabled KMS for i915 driver. But when I tried to start X server, I got the following error:
[ 56.485] (--) controlling tty is VT number 2, auto-enabling KeepTty
[ 56.485] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 56.485] (II) intel(G0): Using Kernel Mode Setting driver: i915, version 1.6.0 20140725
[ 56.485] (EE) [drm] KMS not enabled
[ 56.486] (EE) No devices detected.
[ 56.486] (EE)
Fatal server error:
[ 56.486] (EE) no screens found(EE)
[ 56.486] (EE)
"cat /sys/module/i915/parameters/modeset" gives 1, which means KMS should have been enabled.
Can anyone help me with this? The output of dmesg and full file of Xorg log are here and here
Offline
So you have hybrid graphics? You need to follow the wiki for that, or disable the NVIDIA gpu from your BIOS. Uninstalling the driver will not do that.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
So you have hybrid graphics? You need to follow the wiki for that, or disable the NVIDIA gpu from your BIOS. Uninstalling the driver will not do that.
Thanks for your reply. I followed the wiki (as bumblebee won't work for nouveau), running `xrandr --setprovideroffloadsink nouveau Intel`would cause X to restart. The output of `xrand --listproviders` seems fine:
Providers: number : 2
Provider 0: id: 0xae cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 4 outputs: 4 associated providers: 0 name:nouveau
Provider 1: id: 0x45 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:Intel
The output of `journalctl -b 0 /usr/bin/Xorg.bin` is here
Offline
That looks like the log of a successful run. What is the output from Xorg?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yeah it indeed looks like a successful run. I tried to run a few more times, but every time the log is just like it's working. What do you mean by the output from Xorg?
Offline
I mean the xorg log for the more recent run - like the log you posted in the first post.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Offline
OK, but in the first post you said you were using startx. Can you disable the DM and try startx again?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
OK, here http://pastebin.com/5074QV93
Offline
That's not complete - it never exited. Did you return to a command line after that?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I never managed startx to work so I switched to lightdm to produce this log. After executing the xrandr command, it DID coming back to the command line for a short moment, but it immedately came back to lightdm. If it has exited, it should happen somewhere in the middle of the log. Sorry that this has cost so much time for you..
Offline
I know you haven't gotten startx to work - that's where this thread started. You also haven't gotten gdm or lightdm to work either it would seem. But if you keep changing what you are doing we'll never get to the bottom of anything.
It's ok if startx doesn't work - but when it doesn't work, what errors does it give?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
OK I have managed startx to work (just switched from i3 to cinnamon in .xinitrc). The log is here. After executing "xrandr --setprovideroffloadsink nouveau Intel", the X server exits and returned to the command line, which is not supposed to happen..
Offline
Maybe it's a bit misleading here. I'm actually trying to get the hybrid graphic to work in a way that the nvidia card would not work unless there are some intensive graphic related jobs to save battery.
The output of "sudo cat /sys/kernel/debug/vgaswitcheroo/switch"
0:IGD: :Pwr:0000:00:02.0
1:DIS-Audio: :Pwr:0000:01:00.1
2:DIS:+:Pwr:0000:01:00.0
Which means both the cards are powered on, which is not optimized. I followed this wiki, but the `xrandr` commands would take X server down instead of changing the settings. However, the log, also seems weird to me, that it never shows it has exited but it actually did. I also used `ps` to double check that the X server has exited.
Last edited by xuhdev (2015-01-07 23:15:21)
Offline