hybrid-detect does not work with i386 package architecture

Bug #1061560 reported by linuxball
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04

$ apt-cache policy nvidia-common
nvidia-common:
  Installed: 1:0.2.44.2
  Candidate: 1:0.2.44.2
  Version table:
 *** 1:0.2.44.2 0
        500 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:0.2.44 0
        500 http://de.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

Hardware:
  LENOVO ThinkPad T520 (Type: 4240-6AG) with Nvidia Optimus technology
  BIOS Setup -> Config -> Display -> OS Detection for NVIDIA Optimus: [Disabled]

Expected behavior for i386 package architecture:

  If "BIOS Setup -> Config -> Display -> Graphics Device" was changed from "Discrete Graphics" (NVIDIA NVd9) to "Integrated Graphics" [Intel Sandybridge Mobile (GT2+)] then hybrid-detect should look for the master link of an alternative for the "i386-linux-gnu_gl_conf" mesa driver and set the respective link using "update-alternatives".

  If "BIOS Setup -> Config -> Display -> Graphics Device" was changed from "Integrated Graphics" [Intel Sandybridge Mobile (GT2+)] to "Discrete Graphics" (NVIDIA NVd9) then hybrid-detect should look for the master link of an alternative for the "i386-linux-gnu_gl_conf" nvidia driver and set the respective link using "update-alternatives".

Actual behavior for i386 package architecture:

  In both cases it does not recognize the "i386" package architecture. The respective log output in /var/log/upstart/hybrid-gfx.log is:
  Gfx was changed in the BIOS
  i386 is not supported for hybrid graphics

Fix:

  Most probably due to a "copy and paste" typo hybrid-detect.c checks two times for the "amd64" package architecture (instead of "i386" in line 192). The attached patch will fix this.

Tags: patch
Revision history for this message
linuxball (linuxball) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix for the above reported bug" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
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.