You are not logged in.

#1 2015-01-07 01:27:08

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#2 2015-01-07 01:48:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#3 2015-01-07 02:38:36

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

Trilby wrote:

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

#4 2015-01-07 02:46:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#5 2015-01-07 03:12:29

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#6 2015-01-07 12:39:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#7 2015-01-07 21:07:35

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

Trilby wrote:

I mean the xorg log for the more recent run - like the log you posted in the first post.

This is the way to view Xorg log since I'm using GDM. See here.

Offline

#8 2015-01-07 21:25:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#9 2015-01-07 21:50:24

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

Offline

#10 2015-01-07 22:05:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#11 2015-01-07 22:08:22

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#12 2015-01-07 22:38:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#13 2015-01-07 23:04:48

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

#14 2015-01-07 23:09:27

xuhdev
Member
Registered: 2014-08-11
Posts: 27
Website

Re: Intel graphics even KMS is enabled, xorg still says KMS is not enabled

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

Board footer

Powered by FluxBB