You are not logged in.

#1 2011-12-19 21:05:28

laerne
Member
Registered: 2010-12-02
Posts: 5

[SOLVED] Use the xf86-intel-driver

Hello, i would like to use the intel driver on my hp mini laptop (64bits os).

I've been using a fresh installation of archlinux for a year, but I'm getting tired of not being able to use xrandr.

for example, `xrandr -o left` complains with :

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  149 (RANDR)
  Minor opcode of failed request:  2 (RRSetScreenConfig)
  Serial number of failed request:  14
  Current serial number in output stream:  14

I uninstall the vesa driver, but starting xorg then fails :

X.Org X Server 1.11.3
Release Date: 2011-12-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.1.5-1-ARCH x86_64 

(...)

(==) Log file: "/var/log/Xorg.2.log", Time: Mon Dec 19 21:15:47 2011
(==) Using config directory: "/etc/X11/xorg.conf.d"
(EE) Failed to load module "vesa" (module does not exist, 0)
(EE) open /dev/fb0: No such file or directory
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

I have no xorg.conf to force use of vesa.  Only some unrelated files in /etc/X11/xorg.conf.d

% ls /etc/X11/xorg.conf.d 
10-evdev.conf  10-quirks.conf  10-synaptics.conf  50-joystick.conf  50-vmmouse.conf  50-wacom.conf

It seems anyway to force me to use vesa.  But lspci tells me I should use i915 !

% lspci -ks 0:02 
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller
        Subsystem: Hewlett-Packard Company Device 3660
        Kernel modules: i915
00:02.1 Display controller: Intel Corporation N10 Family Integrated Graphics Controller
        Subsystem: Hewlett-Packard Company Device 3660

And that's not the worst of it.  I've uninstalled xf86-video-intel, rebooted, but lsmod tells the module i915 is loaded !

i915                  725922  0 
drm_kms_helper         25721  1 i915
drm                   185768  2 i915,drm_kms_helper
intel_agp              10904  1 i915
i2c_algo_bit            5199  1 i915
button                  4470  1 i915
intel_gtt              14455  3 i915,intel_agp
i2c_core               20460  6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video                  11164  1 i915

I really do not understand anything anymore...

Can someone help ?

Thanks !

Last edited by laerne (2011-12-24 09:38:27)

Offline

#2 2011-12-20 09:43:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the xf86-intel-driver

What's the output of

grep i915 /etc/mkinitcpio.conf

You need to remove the mention of 'i915' from the places you've put it in when you did set it up.

Offline

#3 2011-12-20 09:55:11

RichAustin
Member
From: Wakefield, Yorkshire, England
Registered: 2011-07-27
Posts: 186

Re: [SOLVED] Use the xf86-intel-driver

This sounds sort of like an issue I had on ArchBang where the system tries to default to vesa. I fixed it by editing the following file:

sudo nano /etc/X11/xorg.conf.d/20-gpudriver.conf

Then replacing "vesa" with "intel" so the file reads like this:

Section "Device"
Identifier "Card0"
Driver     "intel"
EndSection

You can also check what drivers are installed using the following:

pacman -Qqs ^xf86-video

In my case a huge list was returned and I deleted all of them, with "sudo pacman -R name-of-driver-here", except the intel one, rebooted and the video worked fine. Your error is different to mine but the fact that it is complaining about vesa when it should be intel I figure is enough of a reason to at least check the file I mentioned - took me ages to find the darn error so I hope it works for you!

Rich

Offline

#4 2011-12-20 10:11:35

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: [SOLVED] Use the xf86-intel-driver

Don't give up on i915 yet.

Make sure these packages are installed:
xf86-video-fbdev
xf86-video-intel
xf86-video-vesa


In /etc/modprobe.d/modprobe.conf:

options i915 modeset=1

In /etc/mkinitcpio.conf:

MODULES="intel_agp i915"

and uncomment:

FILES="/etc/modprobe.d/modprobe.conf"

If you made changes to /etc/mkinitcpio.conf, don't forget to regenerate initramfs:

$ sudo mkinitcpio -p linux

Create /etc/X11/xorg.conf.d/20-intel.conf:

Section "Device"
    Identifier "card0"
    Driver "intel"
    VendorName  "Intel Corporation"
    BoardName   "Intel Corporation N10 Family Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
EndSection

Reboot

Test if KMS on (should reply with 1):

$ sudo cat /sys/module/i915/parameters/modeset

Edit: Added FILES="/etc/modprobe.d/modprobe.conf"  to /etc/mkinitcpio.conf (which was the crucial part, see my post #11 below).

Last edited by samuvuo (2011-12-24 13:10:18)

Offline

#5 2011-12-20 19:42:29

laerne
Member
Registered: 2010-12-02
Posts: 5

Re: [SOLVED] Use the xf86-intel-driver

Thank you for your help.
I didn't say in my first post I didn't have i915 listed in mkinitcpio.conf at the first time, and that I eventually add it when I removed xf86-video-intel (I obviously forgot it). Loading it in mkinitcpio or not didn't change anything.

So now I've added that etc/X11/xorg.conf.d/20-intel.conf like karol and samuvoo, and i even added "options i915 modeset=1" in /etc/modprobe.d/modprobe.conf, but it still fails :

Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 20 20:28:05 2011
(==) Using config directory: "/etc/X11/xorg.conf.d"
(EE) No devices detected.

Fatal server error:
no screens found

also it looks like I have no KMS enabled :

# cat /sys/module/i915/parameters/modeset
-1

Well, if KMS is the problem I don't know how to enable it.

Last edited by laerne (2011-12-20 19:43:40)

Offline

#6 2011-12-20 19:47:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the xf86-intel-driver

I assume you have re-installed Intel driver, right? So now read the wiki on KMS :-) https://wiki.archlinux.org/index.php/In … Setting.29
First check your kernel commandline in grub to see if you haven't added 'nomodeset' there.

If you still can't get it to work, post the xorg log.

Last edited by karol (2011-12-20 19:49:12)

Offline

#7 2011-12-21 06:21:51

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] Use the xf86-intel-driver

For what it's worth, on my Core i3 "cat /sys/module/i915/parameters/modeset" returns -1 too even though KMS is obviously on since it's mandatory and enabled automatically smile. Theorically there should be no need for any configuration with the intel driver, well, as far as I know...

Offline

#8 2011-12-21 11:30:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Use the xf86-intel-driver

@stqn
You can disable KMS and then "cat /sys/module/i915/parameters/modeset" returns -1.

Offline

#9 2011-12-21 11:37:15

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED] Use the xf86-intel-driver

I have -1 in that file as well but KMS is certainly enabled, I have, for instance, the fast tty switching, which was a lot slower in the pre-KMS days.
FWIW, I'm on a core2duo with a GM965 graphics chip.

Offline

#10 2011-12-22 13:16:07

laerne
Member
Registered: 2010-12-02
Posts: 5

Re: [SOLVED] Use the xf86-intel-driver

Yes, i've reinstalled xf86-video-intel.

And I indeed booted with the nomodeset option.
I've regenerated my grub.cfg, and now I boot with

menuentry 'Arch Linux, with Linux linux' --class archlinux --class gnu-linux --class gnu --class os {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='(hd0,gpt1)'
    search --no-floppy --fs-uuid --set=root c8d85ba3-c490-49b6-a131-112bb2b5333b
    echo    'Loading Linux linux ...'
    linux   /vmlinuz-linux root=UUID=2351507b-5a31-4a7c-9e32-30ca91225d14 ro  quiet
    echo    'Loading initial ramdisk ...'
    initrd  /initramfs-linux.img
}

But still,  my kernel complains with kms :

# cat /sys/module/i915/parameters/modeset
-1

Last edited by laerne (2011-12-22 13:25:06)

Offline

#11 2011-12-24 04:26:35

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: [SOLVED] Use the xf86-intel-driver

Ramses de Norre wrote:

FWIW, I'm on a core2duo with a GM965 graphics chip.

Same setup here. Have also installed Arch Linux on 10 Thinkpad R51 laptops (82852/855GM) that use i915 and they showed -1 unless i915 was loaded early + KMS enabled as early as possible (see below).


@laerne:

My mistake, and apologies for not monitoring this thread in a couple of days (busy times). Looks like I've left out one important step.

I forgot to add one (crucial?) piece to the recipe above. i915 gets loaded early (included in the initramfs) so KMS should be enabled as early as possible. On my setups I do this via adding to /etc/mkinitcpio.conf:

FILES="/etc/modprobe.d/modprobe.conf"

I believe the line is there already, just commented out. If you uncomment / add it, don't forget to re-generate the image afterwards (sudo mkinitcpio -p linux).

Or you can add i915.modeset=1 to kernel options in Grub. It's a matter of personal reference and setup style, including modprobe.conf suits mine better.

Could you please test that and tell us if it worked?

Last edited by samuvuo (2011-12-24 04:29:12)

Offline

#12 2011-12-24 09:38:05

laerne
Member
Registered: 2010-12-02
Posts: 5

Re: [SOLVED] Use the xf86-intel-driver

Thank you very much !   I works !

# cat /sys/module/i915/parameters/modeset 
1

I've also edited modprobe.conf, I do not like very much to edit grub.cfg .

Many thanks to everybody who helped.

Offline

#13 2011-12-24 13:11:38

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: [SOLVED] Use the xf86-intel-driver

Great news! I've edited my post above (#4) to include the vital piece of the recipe.

Offline

#14 2012-01-03 12:37:50

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: [SOLVED] Use the xf86-intel-driver

edited!

Last edited by 1archgamenon2 (2012-01-05 01:58:24)

Offline

#15 2012-01-03 19:32:33

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: [SOLVED] Use the xf86-intel-driver

edited!

Last edited by 1archgamenon2 (2012-01-05 01:57:50)

Offline

#16 2012-01-05 01:49:19

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: [SOLVED] Use the xf86-intel-driver

samuvuo wrote:

xf86-video-vesa

hi! can you explain me(us) why is necessary that driver if you have intel installed? what's the matter with it? is crucial on boot? I tell you cause if I remove(vesa) can't get X's...
sorry for being so 'newbie' on arch...

Last edited by 1archgamenon2 (2012-01-05 01:50:21)

Offline

#17 2012-01-05 13:33:32

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: [SOLVED] Use the xf86-intel-driver

no one?

Offline

#18 2012-01-06 13:19:23

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [SOLVED] Use the xf86-intel-driver

1archgamenon2 wrote:
samuvuo wrote:

xf86-video-vesa

hi! can you explain me(us) why is necessary that driver if you have intel installed? what's the matter with it? is crucial on boot? I tell you cause if I remove(vesa) can't get X's...
sorry for being so 'newbie' on arch...

X detemines what videocard you have and then tries different drivers.

vesa and fbdev are the last 2 that are tried and useful as fallback options.

Last edited by Lone_Wolf (2012-01-06 13:19:37)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#19 2012-01-08 20:59:20

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: [SOLVED] Use the xf86-intel-driver

RichAustin wrote:

This sounds sort of like an issue I had on ArchBang where the system tries to default to vesa. I fixed it by editing the following file:

sudo nano /etc/X11/xorg.conf.d/20-gpudriver.conf

Then replacing "vesa" with "intel" so the file reads like this:

Section "Device"
Identifier "Card0"
Driver     "intel"
EndSection

Hey pal...not so easy 4 me! perhaps to u!!

Offline

#20 2013-01-13 02:46:06

rhoit
Member
From: 977
Registered: 2012-07-05
Posts: 62
Website

Re: [SOLVED] Use the xf86-intel-driver

It almost year late! but..
I'm bit confused  with the -1 value of  "cat /sys/module/i915/parameters/modeset"  i guess intel graphics cards seems to run fine!
does 1 value means the intel driver being used?

Offline

#21 2013-01-13 04:47:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Use the xf86-intel-driver

Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27

1 means enabled.


Closing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB