Bug 21373 - [845] No mouse pointer with Intel driver
Summary: [845] No mouse pointer with Intel driver
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-24 02:41 UTC by Ariszló
Modified: 2009-05-26 21:03 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log-intel (38.26 KB, text/plain)
2009-04-24 02:41 UTC, Ariszló
no flags Details
Xorg.0.log-vesa (32.05 KB, text/plain)
2009-04-24 02:42 UTC, Ariszló
no flags Details
Xorg.0.log (intel) (shorter) (17.31 KB, text/plain)
2009-04-29 09:28 UTC, aguertin+freedesktop
no flags Details
xorg.conf with dri disabled (458 bytes, text/plain)
2009-05-03 08:59 UTC, Ariszló
no flags Details
Output of intel_reg_dumper (9.35 KB, text/plain)
2009-05-06 12:27 UTC, aguertin+freedesktop
no flags Details
Fedora 11 Xorg.0.log with dri disabled in xorg.conf (44.71 KB, text/plain)
2009-05-07 09:32 UTC, Ariszló
no flags Details
kernel nomodeset Xorg.0.log (49.47 KB, text/plain)
2009-05-09 06:14 UTC, Ariszló
no flags Details

Description Ariszló 2009-04-24 02:41:00 UTC
Created attachment 25092 [details]
Xorg.0.log-intel

00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)

xorg-x11-server-1.6.1-6.fc11
xorg-x11-drv-intel-2.7.0-1.fc11
Fedora release 10.92 (Rawhide)

There is no visible mouse pointer if there is no xorg.conf or if xorg.conf has this line in the Device section: Driver "intel"

To get a mouse pointer I have to use vesa.
Comment 1 Ariszló 2009-04-24 02:42:01 UTC
Created attachment 25093 [details]
Xorg.0.log-vesa
Comment 2 Ariszló 2009-04-24 02:42:43 UTC
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)

xorg-x11-server-1.6.1-6.fc11
xorg-x11-drv-intel-2.7.0-1.fc11
Fedora release 10.92 (Rawhide)

There is no visible mouse pointer if there is no xorg.conf or if xorg.conf has this line in the Device section: Driver "intel"

To get a mouse pointer I have to use vesa.
Comment 3 aguertin+freedesktop 2009-04-24 08:27:31 UTC
This happens also for current git driver, drm, and drm-intel-next kernel.

Note that the mouse still works, it's just invisible. You can, e.g., still click on stuff, and xeyes will follow it around on screen.

Also, last I checked, if DRI is disabled the pointer appears.
Comment 4 Ariszló 2009-04-25 04:36:00 UTC
(In reply to comment #3)
> Also, last I checked, if DRI is disabled the pointer appears.

Not here. I cannot see the pointer with this either:

Section "Device"
	Identifier  "Card0"
	Driver      "intel"
	VendorName  "Intel Corporation"
	BoardName   "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
	BusID       "PCI:0:2:0"
	Option      "DRI" "false"
EndSection

Only with vesa.

Some more details. With the intel driver, I can switch from gdm/gnome to virtual terminals but cannot see the mouse pointer. With the vesa driver, I can see the mouse pointer but cannot switch to virtual terminals.

Meanwhile, xorg-x11-drv-intel has been updated to xorg-x11-drv-intel-2.7.0-2.fc11 with no improvement.
Comment 5 aguertin+freedesktop 2009-04-27 09:24:47 UTC
Yeah, it wasn't working with:

Section "Device"
        [...]
        Option      "DRI" "false"
EndSection

Instead I had to do:

Section "Module"
        [...]
        Disable  "dri2"
        Disable  "dri"
EndSection

I don't know why.
Comment 6 aguertin+freedesktop 2009-04-29 09:28:06 UTC
Created attachment 25256 [details]
Xorg.0.log (intel) (shorter)

Here's an Xorg.0.log from my system. It's much shorter, hopefully easier to see stuff in.

Run with current git (as of a few minutes ago) libdrm, mesa, drm-intel-next kernel, and xf86-video-intel, and xorg-server 1.6.1. No xorg.conf.
Comment 7 Ariszló 2009-05-03 08:59:23 UTC
Created attachment 25389 [details]
xorg.conf with dri disabled
Comment 8 Ariszló 2009-05-03 09:00:10 UTC
(In reply to comment #5)

Thanks for the tip. Disabling dri brings back the mouse pointer but loading or disabling dri2 does not seem to make a difference with xorg-x11-drv-intel-2.7.0-2.fc11.

Unfortunately, disabling dri brings back the mouse pointer at a price: I can no longer switch to virtual terminals from GDM/Gnome.

These are the configurations I tested:

Configuration 0
no xorg.conf, intel driver loaded, dri & dri2 extensions loaded
Results:
1. mouse pointer is NOT VISIBLE (bad)
2. logging out from Gnome to GDM: OK (good)
3. switching from GDM/Gnome to virtual terminals: OK (good)

Configuration 1
dri disabled, dri2 loaded (or not, does not matter)
Results:
1. mouse pointer: OK (good)
2. logging out from Gnome to GDM: OK (good)
3. switching from GDM/Gnome to virtual terminals: blank screen with vertical noise (bad) but at least I can switch back to GDM/Gnome (some good)

Configuration 2
dri loaded, dri2 disabled
Results:
1. blank screen (bad)
2. cannot switch to virtual terminals (bad)
3. Ctrl+Alt+Delete does not work (bad)

Configuration 3
vesa
Results:
1. mouse pointer: OK (good)
2. logging out from Gnome to GDM: blank screen (bad)
3. switching from GDM/Gnome to virtual terminals: blank screen (bad) from which I cannot switch back to GDM/Gnome (even worse)
Comment 9 aguertin+freedesktop 2009-05-06 12:27:31 UTC
Created attachment 25569 [details]
Output of intel_reg_dumper

jbarnes asked for the output of intel_reg_dumper on IRC. Here it is.
Comment 10 aguertin+freedesktop 2009-05-06 12:31:38 UTC
Comment on attachment 25569 [details]
Output of intel_reg_dumper

Nevermind, cursor registers aren't dumped by intel_reg_dumper. :(
Comment 11 Wang Zhenyu 2009-05-06 23:03:56 UTC
Your first log has 

(II) intel(0): No memory allocations

but your last log looks fine. HW cursor has allocated memory, and 845G cursor uses graphics addr.
So do you have correct mouse config? ...
Comment 12 aguertin+freedesktop 2009-05-07 03:31:12 UTC
(In reply to comment #11)
> Your first log has 
> 
> (II) intel(0): No memory allocations
> 
> but your last log looks fine. HW cursor has allocated memory, and 845G cursor
> uses graphics addr.
> So do you have correct mouse config? ...

Note that the logs are from different people. Specifically, Ariszló's uses Fedora's provided xorg.conf and components, mine uses no xorg.conf and stock components.

So to answer the question about mouse config, mine is correct if the default configuration is correct.


Also, since it hasn't been mentioned here before, this is with KMS enabled. Also probably related, anholt said on IRC that his 865 has no cursor with KMS either.
Comment 13 Ariszló 2009-05-07 09:32:20 UTC
Created attachment 25599 [details]
Fedora 11 Xorg.0.log with dri disabled in xorg.conf

(In reply to comment #11)
> Your first log has 
> 
> (II) intel(0): No memory allocations
> 
> but your last log looks fine. HW cursor has allocated memory, and 845G cursor
> uses graphics addr.
> So do you have correct mouse config? ...

My first log shows what I had with no xorg.conf.
The log I am submitting now shows what happens if I disable dri in xorg.conf.
With no xorg.conf, I have not configured the mouse myself and I have not configured it in this xorg.conf either:
http://bugs.freedesktop.org/attachment.cgi?id=25389

Perhaps, dri requires more memory than my machine has. It has 384 MB of RAM and 1 GB of swap.
Comment 14 Joachim Frieben 2009-05-09 00:29:15 UTC
Issue had been originally reported as vendor bug

  https://bugzilla.redhat.com/show_bug.cgi?id=488980

and is related to kernel modesetting. By adding kernel option "nomodeset", a visible mouse pointer is recovered.
Comment 15 Ariszló 2009-05-09 06:14:07 UTC
Created attachment 25661 [details]
kernel nomodeset Xorg.0.log

nomodeset: Yes, adding nomodeset to the kernel line in /boot/grub/grub.conf (/boot/grub/menu.lst in other distributions) did the trick.

Everything is OK now:

1. mouse pointer: OK (good)
2. logging out from Gnome to GDM: OK (good)
3. switching from GDM/Gnome to virtual terminals: OK.

Except that I lost the graphical boot splash, which I don't miss so no problem.

Now is this a kernel bug or an intel video driver bug?
Comment 16 Ariszló 2009-05-09 11:14:00 UTC
(In reply to comment #15)
> Created an attachment (id=25661) [details]
> kernel nomodeset Xorg.0.log

More info:

No xorg.conf
xorg-x11-drv-intel-2.7.0-4.fc11
xorg-x11-server-Xorg-1.6.1-11.fc11
fedora-release-10.93-2
kernel-PAE-2.6.29.2-126.fc11
nomodeset added to the kernel line of /boot/grub/grub.conf

Just found out: you only need to use nomodeset with kernel-PAE. No mouse pointer issue at all with the plain, non-PAE kernel.
Comment 17 Ariszló 2009-05-09 11:45:52 UTC
(In reply to comment #16)
> Just found out: you only need to use nomodeset with kernel-PAE. No mouse
> pointer issue at all with the plain, non-PAE kernel.
 
I was just wrong. I have just installed the non-PAE kernel letting yum adding it to grub.conf. Assuming that yum did not add the nomodeset option, rebooted the machine, saw the mouse pointer and thought what I did. Now I can see that yum did add the nomodeset option to the non-PAE kernel, perhaps copying it from the manually edited kernel line of the PAE kernel.
Comment 18 Ariszló 2009-05-21 01:37:38 UTC
(In reply to comment #15)
> Now is this a kernel bug or an intel video driver bug?
 
It is a kernel bug and this patch fixes it:
https://bugzilla.redhat.com/show_bug.cgi?id=488980#c27
Comment 19 Wang Zhenyu 2009-05-21 17:52:57 UTC
Give this to Jesse, as he's made the patch.
Comment 20 Eric Anholt 2009-05-26 21:03:10 UTC
commit 14b60391587ab9b2207c4fb6281763a93ae85e0f
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Wed May 20 16:47:08 2009 -0400

    i915: support 8xx desktop cursors


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.