Synaptics touchpad detection (regression)

Bug #40503 reported by VesaNieminen
74
Affects Status Importance Assigned to Milestone
laptop-detect (Debian)
Fix Released
Unknown
laptop-detect (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

In Fujitsu-Siemens Amilo M1437G the synaptics touchpad is no longer detected correctly during installation in Dapper (tested flight 4 and beta). It basically works, but there is no touchpad info in xorg.conf which unfortunately removes all special features like 'scrollwheel' side. In Breezy 5.10 it works fine.

Revision history for this message
Tomasz Dominikowski (dominikowski) wrote :

True, it is detected as a normal mouse, which would be fine if it let me click and grab, but it does not.

Changed in xorg:
status: Unconfirmed → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Same on a Compaq Presario 700 and Acer Travelmate 8100, using Dapper Beta 2 live installer. If I run dpkg-reconfigure xserver-xorg, the resulting xorg.conf gets the correct synaptics section.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

this is hutterly weird bug.. that code didn't change in ages... Tormod can you please attach /var/log/casper.log and run these few lines on a shell? (you can just copy paste all of them in one shot)

LAPTOP=""
if [ -n "$(which laptop-detect)" ]; then
    if laptop-detect >/dev/null; then
        LAPTOP=true
    fi
fi
echo $LAPTOP

Thanks
Fabio

Changed in xorg:
status: Confirmed → Needs Info
Revision history for this message
VesaNieminen (die-spammers) wrote :

That laptop-test eturns true for me...

And doing "dpkg-reconfigure xserver-xorg" fixes it for me too.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I don't have any casper.log on any of the laptops!

The script returns "true". Some funny way of writing "laptop-detect && echo true" I would say ;)

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

I am puzzled... because when that code return true the synaptic instance in xorg.conf is always written.

Yes i know it looks funny but on install we also need to make sure laptop-detect is installed, available and so on.. also LAPTOP gets used a few times, so once it's set.. it's done.. no more to think about it.

you get casper.log only if you are running from the LiveCD.

Fabio

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I used the Dapper Beta 2 live CD for both installations. There is no casper.log on the disk, and in /var/log/installer there is only syslog.

Revision history for this message
VesaNieminen (die-spammers) wrote :

No casper.log here, since I can't run the LiveCD at all (display driver problems).

Could this be in any way related to xorg failing to start during the installation after first boot? My laptop can't boot to x with any current ubuntu live or installation cd, I have to install fglrx drivers manually and restart gdm in first boot.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

> Could this be in any way related to xorg failing to start

Not likely. I had no problems except the missing synaptics section.

Revision history for this message
Tormod Volden (tormodvolden) wrote : casper.log

(I thought the log would have been copied to the installed system.) Never mind, here is the log from running the live CD again.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

BTW, the casper.log was from the Presario. The laptop-detect returns true also when running from the live CD.

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Could you please do the following:

- boot the live cd, but add "break=bottom" to the kernel command line.
- once you get a shell, type:
 chroot /root mount /sys
 chroot /root mount /proc
 chroot /root laptop-detect
 echo $?
- if the last line shows a 1, please do chroot /root sh -x /usr/sbin/laptop-detect and post the output (you might want to run it as chroot /root sh -x /usr/sbin/laptop-detect > /root/var/tmp/laptop.txt 2>&1 to capture the output to a file)

Revision history for this message
Tormod Volden (tormodvolden) wrote : output from verbose laptop-detect

Just a comment: "chroot /root laptop-detect" does not work since /usr/sbin is not in the path. I used the full path and it returned 1.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The previous output was on the Acer. The full dmidecode output is here: http://librarian.launchpad.net/1853317/dmidecode.8103

Revision history for this message
Tormod Volden (tormodvolden) wrote :

dmidecode output from the Compaq is here: http://librarian.launchpad.net/2341493/dmidecode.out
I can't try Tollef's test on it right now.

Revision history for this message
Tormod Volden (tormodvolden) wrote : verbose laptop-detect after modprobe battery

Got the exact same result on the Compaq. I also noticed it was very little in /root/proc/acpi. Then I did "chroot /root /sbin/modprobe battery" and got the attached output, where the battery slot is detected and the script returns 0.

Revision history for this message
Mikko Saarinen (mikk0) wrote :

For me this says TRUE

Installed Flight6 to MSI S250 and the Synaptics section got written to xorg.conf.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Any more info needed? The problem persists in 6.06.1 and Edgy Knot-1. That laptop-detect fails to identify laptops during early boot also breaks some other things like screen resolution detection.

Should this bug be reassigned to laptop-detect? Or should other programs make sure the battery module is loaded before calling laptop-detect?

Changed in xorg:
status: Needs Info → Confirmed
Revision history for this message
Rodrigo Novo (rodarvus) wrote :

Reassigning to laptop-detect. Please reassign to xorg if you feel this is not correct.

Revision history for this message
Asraniel (asraniel) wrote :

Works for me now in egdy final, upgraded from dapper

Travelmate 8100

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I am running Ubuntu 6.10 Desktop cd on the TravelMate - still same problem, and no synaptics in xorg.conf.

Revision history for this message
Richard Green (rtg-aapsc) wrote :

I've been having this same problem occur with Feisty, from herd 4 thru today's daily build (20070401) I'm running Kubuntu AMD_64.
laptop-detect returns true.
on herd-5,the last one I installed, dpkg --reconfigure xserver-xorg did correctly detect both the touchpad and the monitor, giving me the proper resolution.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Richard, can you try Tollef's test from comment #12?

Revision history for this message
Mathijs Vogelzang (mathijs) wrote :

Is there any chance this will get fixed before feisty final release?
On my Toshiba (very recent) A110 laptop, as well as on a much older Acer laptop, the synaptics driver is not added to the xorg file by default. As this is on two laptops, and suse detects it by default I think this is more likely to be a problem with the code than with this being weird hardware or something.
Are there any tests I can perform to help?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Mathijs, try Tollef's test from comment #12 (booting from the Desktop CD), and report back here. Then try also my variation in comment #16. That might help, thanks.

Revision history for this message
Kobus Prinsloo (kprinsloo) wrote :

Thanks

"dpkg-reconfigure xserver-xorg" worked for me as well.

Travelmate 8100
Feisty

Revision history for this message
Mathijs Vogelzang (mathijs) wrote : Re: [Bug 40503] Re: Synaptics touchpad detection (regression)

dpkg-reconfigure works for me as well. The diff between the original and the
new xorg.conf shows the section with synaptics touchpad, as well as that the
dpkg-reconfigure fills out values as "Generic Video Card", etc. whereas the
original file had more specific names as "Intel Corporation Mobile
945GM/GMS/940GML Express Integrated Graphics Controller".

So the question remains: why is the default setup procedure creating the
xorg.conf file in some different way?

On 7/8/07, Kobus Prinsloo <email address hidden> wrote:
>
> Thanks
>
> "dpkg-reconfigure xserver-xorg" worked for me as well.
>
> Travelmate 8100
> Feisty
>
> --
> Synaptics touchpad detection (regression)
> https://bugs.launchpad.net/bugs/40503
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Ulfzart (ulfzart) wrote :

On the Festy I didn't meet that problem. So I guess it has been fixed.

Revision history for this message
Mathijs Vogelzang (mathijs) wrote :

I did meet this problem on feisty! The standard install process did not add
synaptics to the xorg.conf, whereas the dpkg-reconfigure method later does.

On 7/8/07, Ulfzart <email address hidden> wrote:
>
> On the Festy I didn't meet that problem. So I guess it has been fixed.
>
> --
> Synaptics touchpad detection (regression)
> https://bugs.launchpad.net/bugs/40503
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Tormod Volden (tormodvolden) wrote :

> So the question remains: why is the default setup procedure creating the xorg.conf file in some different way?

Because when the installer CD starts and configures X, the "battery" kernel module is not loaded, and therefore the laptop-detect script does not see the battery and does not recognize the computer as a laptop and then does not write the "synaptics" section.

For the specific card names turning into "Generic": the mapping between PCI IDs and names is in the libdiscover1-data package, which is deinstalled at the end of the installation.

Revision history for this message
Ulfzart (ulfzart) wrote :

If should check for the laptop... I mean, it would be much better, if it
check for that.

2007/7/8, Tormod Volden <email address hidden>:
>
> > So the question remains: why is the default setup procedure creating
> the xorg.conf file in some different way?
>
> Because when the installer CD starts and configures X, the "battery"
> kernel module is not loaded, and therefore the laptop-detect script does
> not see the battery and does not recognize the computer as a laptop and
> then does not write the "synaptics" section.
>
> For the specific card names turning into "Generic": the mapping between
> PCI IDs and names is in the libdiscover1-data package, which is
> deinstalled at the end of the installation.
>
> --
> Synaptics touchpad detection (regression)
> https://bugs.launchpad.net/bugs/40503
> You received this bug notification because you are a member of Ubuntu
> Laptop Team, which is a bug contact for laptop-detect in ubuntu.
>

--
Best regards,
Ulfzart Bjornsson

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Ulfzart, I am not sure what you mean, but the point is that finding a battery is a fall-back way to detect a laptop, if there's no more direct indication in for instance the dmidecode output. (BTW, please don't quote complete messages including addresses when you answer bug mail.)

Revision history for this message
Ulfzart (ulfzart) wrote :

I mean, that if there is another methods to check for the laptop platform, they should be used, but still, we need to check, whether the computer uses battery or not. If the hardware is old, there is no way to hotplug the battery (correct me if I'm wrong), so some people will use the laptop without it, and they don't need some battery-modules in the memory, that will just slow down the system. Also they won't be able to hotplug the battery (even if thay do... then the modules should be loaded). That was my idea.

Thank you.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

This patch just runs "modprobe battery || true" before probing for acpi batteries. I made a debdiff against the new upstream version, since it has all the previous Ubuntu patches incorporated.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

This patch also fixes bug #91447.

Changed in laptop-detect:
status: Unknown → New
Revision history for this message
Daniel Holbach (dholbach) wrote :

Matthew: can you maybe take a look at this one?

Changed in laptop-detect:
assignee: nobody → mjg59
Revision history for this message
Tormod Volden (tormodvolden) wrote :

They accepted my patch upstream, so now a sync would be fine.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I filed a sync request in bug #126503. I am not able to unsubscribe ubuntu-main-sponsors from this bug though.

Changed in laptop-detect:
status: New → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

Marking as Fix Committed then (bug 126503) - thanks Tormod.

Changed in laptop-detect:
status: Confirmed → Fix Committed
assignee: mjg59 → tormodvolden
Revision history for this message
Tormod Volden (tormodvolden) wrote :

 laptop-detect (0.13.2) unstable; urgency=low
 .
   [ Otavio Salvador ]
   * Drop the hack used during the package building and use dependencies
     architeture specific handling for it.
   * Add versioned dependency to dmidecode 2.8-2 since we use chassis-type.
   * Add XS-VCS-{Git,Browser} fields.
 .
   [ Tormod Volden ]
   * laptop-detect.in: Load battery module before probing for acpi
     batteries. Closes: #432407

Changed in laptop-detect:
assignee: tormodvolden → nobody
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.