While looking into how to look up Debian packages based on hardware
-information, to find the packages that support a given piece of
-hardware, I refreshed my memory regarding modalias values, and decided
-to document the details. Here are my findings so far, also available
-in
-the
-Debian Edu subversion repository:
-
-
Modalias decoded
-
-
This document try to explain what the different types of modalias
-values stands for. It is in part based on information from
-<URL: https://wiki.archlinux.org/index.php/Modalias >,
-<URL: http://unix.stackexchange.com/questions/26132/how-to-assign-usb-driver-to-device >,
-<URL: http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c > and
-<URL: http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode&view=markup >.
-
-
The modalias entries for a given Linux machine can be found using
-this shell script:
-
-
-find /sys -name modalias -print0 | xargs -0 cat | sort -u
-
-
-
The supported modalias globs for a given kernel module can be found
-using modinfo:
-
-
-% /sbin/modinfo psmouse | grep alias:
-alias: serio:ty05pr*id*ex*
-alias: serio:ty01pr*id*ex*
-%
-
-
-
PCI subtype
-
-
A typical PCI entry can look like this. This is an Intel Host
-Bridge memory controller:
-
-
-pci:v00008086d00002770sv00001028sd000001ADbc06sc00i00
-
-
-
This represent these values:
-
-
- v 00008086 (vendor)
- d 00002770 (device)
- sv 00001028 (subvendor)
- sd 000001AD (subdevice)
- bc 06 (bus class)
- sc 00 (bus subclass)
- i 00 (interface)
-
-
-
The vendor/device values are the same values outputted from 'lspci
--n' as 8086:2770. The bus class/subclass is also shown by lspci as
-0600. The 0600 class is a host bridge. Other useful bus values are
-0300 (VGA compatible card) and 0200 (Ethernet controller).
-
-
Not sure how to figure out the interface value, nor what it
-means.
-
-
USB subtype
-
-
Some typical USB entries can look like this. This is an internal
-USB hub in a laptop:
-
-
-usb:v1D6Bp0001d0206dc09dsc00dp00ic09isc00ip00
-
-
-
Here is the values included in this alias:
-
-
- v 1D6B (device vendor)
- p 0001 (device product)
- d 0206 (bcddevice)
- dc 09 (device class)
- dsc 00 (device subclass)
- dp 00 (device protocol)
- ic 09 (interface class)
- isc 00 (interface subclass)
- ip 00 (interface protocol)
-
-
-
The 0900 device class/subclass means hub. Some times the relevant
-class is in the interface class section. For a simple USB web camera,
-these alias entries show up:
-
-
-usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc01ip00
-
usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc02ip00
-
usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc01ip00
-
usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc02ip00
-
-
-
Interface class 0E01 is video control, 0E02 is video streaming (aka
-camera), 0101 is audio control device and 0102 is audio streaming (aka
-microphone). Thus this is a camera with microphone included.
-
-
ACPI subtype
-
-
The ACPI type is used for several non-PCI/USB stuff. This is an IR
-receiver in a Thinkpad X40:
-
-
-acpi:IBM0071:PNP0511:
-
-
-
The values between the colons are IDs.
-
-
DMI subtype
-
-
The DMI table contain lots of information about the computer case
-and model. This is an entry for a IBM Thinkpad X40, fetched from
-/sys/devices/virtual/dmi/id/modalias:
-
-
-dmi:bvnIBM:bvr1UETB6WW(1.66):bd06/15/2005:svnIBM:pn2371H4G:pvrThinkPadX40:rvnIBM:rn2371H4G:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
-
-
-
The values present are
-
-
- bvn IBM (BIOS vendor)
- bvr 1UETB6WW(1.66) (BIOS version)
- bd 06/15/2005 (BIOS date)
- svn IBM (system vendor)
- pn 2371H4G (product name)
- pvr ThinkPadX40 (product version)
- rvn IBM (board vendor)
- rn 2371H4G (board name)
- rvr NotAvailable (board version)
- cvn IBM (chassis vendor)
- ct 10 (chassis type)
- cvr NotAvailable (chassis version)
-
-
-
The chassis type 10 is Notebook. Other interesting values can be
-found in the dmidecode source:
-
-
- 3 Desktop
- 4 Low Profile Desktop
- 5 Pizza Box
- 6 Mini Tower
- 7 Tower
- 8 Portable
- 9 Laptop
- 10 Notebook
- 11 Hand Held
- 12 Docking Station
- 13 All In One
- 14 Sub Notebook
- 15 Space-saving
- 16 Lunch Box
- 17 Main Server Chassis
- 18 Expansion Chassis
- 19 Sub Chassis
- 20 Bus Expansion Chassis
- 21 Peripheral Chassis
- 22 RAID Chassis
- 23 Rack Mount Chassis
- 24 Sealed-case PC
- 25 Multi-system
- 26 CompactPCI
- 27 AdvancedTCA
- 28 Blade
- 29 Blade Enclosing
-
-
-
The chassis type values are not always accurately set in the DMI
-table. For example my home server is a tower, but the DMI modalias
-claim it is a desktop.
-
-
SerIO subtype
-
-
This type is used for PS/2 mouse plugs. One example is from my
-test machine:
-
-
-serio:ty01pr00id00ex00
-
-
-
The values present are
-
-
- ty 01 (type)
- pr 00 (prototype)
- id 00 (id)
- ex 00 (extra)
-
-
-
This type is supported by the psmouse driver. I am not sure what
-the valid values are.
-
-
Other subtypes
-
-
There are heaps of other modalias subtypes according to
-file2alias.c. There is the rest of the list from that source: amba,
-ap, bcma, ccw, css, eisa, hid, i2c, ieee1394, input, ipack, isapnp,
-mdio, of, parisc, pcmcia, platform, scsi, sdio, spi, ssb, vio, virtio,
-vmbus, x86cpu and zorro. I did not spend time documenting all of
-these, as they do not seem relevant for my intended use with mapping
-hardware to packages when new stuff is inserted during run time.
-
-
Looking up kernel modules using modalias values
-
-
To check which kernel modules provide support for a given modalias,
-one can use the following shell script:
-
-
- for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
- echo "$id" ; \
- /sbin/modprobe --show-depends "$id"|sed 's/^/ /' ; \
- done
-
-
-
The output can look like this (only the first few entries as the
-list is very long on my test machine):
-
-
- acpi:ACPI0003:
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/acpi/ac.ko
- acpi:device:
- FATAL: Module acpi:device: not found.
- acpi:IBM0068:
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/char/nvram.ko
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/leds/led-class.ko
- insmod /lib/modules/2.6.32-5-686/kernel/net/rfkill/rfkill.ko
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/platform/x86/thinkpad_acpi.ko
- acpi:IBM0071:PNP0511:
- insmod /lib/modules/2.6.32-5-686/kernel/lib/crc-ccitt.ko
- insmod /lib/modules/2.6.32-5-686/kernel/net/irda/irda.ko
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/net/irda/nsc-ircc.ko
- [...]
-
-
-
If you want to help implementing a system to let us propose what
-packages to install when new hardware is plugged into a Debian
-machine, please send me an email or talk to me on
-#debian-devel.
-
-
Update 2013-01-15: Rewrite "cat $(find ...)" to
-"find ... -print0 | xargs -0 cat" to make sure it handle directories
-in /sys/ with space in them.
+
+
22nd June 2013
+
In the Debian Edu /
+Skolelinux project, we include a post-installation test suite,
+which check that services are running, working, and return the
+expected results. It runs automatically just after the first boot on
+test installations (using test ISOs), but not on production
+installations (using non-test ISOs). It test that the LDAP service is
+operating, Kerberos is responding, DNS is replying, file systems are
+online resizable, etc, etc. And it check that the PXE service is
+configured, which is the topic of this post.
+
+
The last week I've fixed the DVD and USB stick ISOs for our Debian
+Edu Wheezy release. These ISOs are supposed to be able to install a
+complete system without any Internet connection, but for that to
+happen all the needed packages need to be on them. Thanks to our test
+suite, I discovered that we had forgotten to adjust our PXE setup to
+cope with the new names and paths used by the netboot d-i packages.
+When Internet connectivity was available, the installer fall back to
+using wget to fetch d-i boot images, but when offline it require
+working packages to get it working. And ad the packages changed name
+from debian-installer-6.0-netboot-$arch to
+debian-installer-7.0-netboot-$arch, we no longer pulled in the
+packages during installation. Without our test suite, I suspect we
+would never have discovered this before release. Now it is fixed
+right after we got the ISOs operational.
+
+
Another by-product of the test suite is that we can ask system
+administrators with problems getting Debian Edu to work, to run the
+test suite using /usr/sbin/debian-edu-test-install and see if
+any errors are detected. This usually pinpoint the subsystem causing
+the problem.
+
+
If you want to help us help kids learn how to share and create,
+please join us on
+#debian-edu on
+irc.debian.org and the
+debian-edu@ mailing
+list.
@@ -793,31 +460,143 @@ in /sys/ with space in them.
-
-
10th January 2013
-
As part of my investigation on how to improve the support in Debian
-for hardware dongles, I dug up my old Mark and Spencer USB Rocket
-Launcher and updated the Debian package
-pymissile to make
-sure udev will fix the device permissions when it is plugged in. I
-also added a "Modaliases" header to test it in the Debian archive and
-hopefully make the package be proposed by jockey in Ubuntu when a user
-plug in his rocket launcher. In the process I moved the source to a
-git repository under collab-maint, to make it easier for any DD to
-contribute. Upstream
-is not very active, but the software still work for me even after five
-years of relative silence. The new git repository is not listed in
-the uploaded package yet, because I want to test the other changes a
-bit more before I upload the new version. If you want to check out
-the new version with a .desktop file included, visit the
-gitweb
-view or use "git clone
-git://anonscm.debian.org/collab-maint/pymissile.git".
+
+
17th June 2013
+
The Debian Edu and
+Skolelinux distribution have users and contributors all around the
+globe. And a while back, an enterprising young man showed up on
+our IRC channel
+#debian-edu and started asking questions about how Debian Edu
+worked. We answered as good as we could, and even convinced him to
+help us with translations. And today I managed to get an interview
+with him, to learn more about him.
+
+
Who are you, and how do you spend your days?
+
+
I'm a 25 year old free software enthusiast, living in Romania,
+which is also my country of origin. Back in 2009, at a New Year's Eve
+party, I had a very nice beer discussion with a
+friend, when we realized we have no organised Debian community in our
+country. A few days later, we put together the infrastructure for such
+community and even gathered a nice Debian-ish crowd. Since then, I
+began my quest as a free software hacker and activist and I am
+constantly trying to cover as much ground as possible on that
+field.
+
+
A few years ago I founded a small web development company, which
+provided me the flexible schedule I needed so much for my
+activities. For the last 13 months, I have been the Technical Director
+of FundaÈia Ceata, which is a free
+software activist organisation endorsed by the FSF and the FSFE, and
+the only one we have in our country.
+
+
How did you get in contact with the Skolelinux / Debian Edu
+project?
+
+
The idea of participating in the Debian Edu project was a surprise
+even to me, since I never used it before I began getting involved in
+it. This year I had a great opportunity to deliver a talk on
+educational software, and I knew immediately where to look. It was a
+love at first sight, since I was previously involved with some of the
+technologies the project incorporates, and I rapidly found a lot of
+ways to contribute.
+
+
My first contributions consisted in translating the installer and
+configuration dialogs, then I found some bugs to squash (I still
+haven't fixed them yet though), and I even got my eyes on some other
+areas where I can prove myself helpful. Since the appetite for free
+software in my country is pretty low, I'll be happy to be the first
+one around here advocating for the project's adoption in educational
+environments, and maybe even get my hands dirty in creating a flavour
+for our own needs. I am not used to make very advanced plannings, so
+from now on, time will tell what I'll be doing next, but I think I
+have a pretty consistent starting point.
+
+
What do you see as the advantages of Skolelinux/Debian
+Edu?
+
+
Not a long time ago, I was in the position of configuring and
+maintaining a LDAP server on some Debian derivative, and I must say it
+took me a while. A long time ago, I was maintaining a bigger
+Samba-powered infrastructure, and I must say I spent quite a lot of
+time on it. I have similar stories about many of the services included
+with Skolelinux, and the main advantage I see about it is the
+out-of-the box availability of them, making it quite competitive when
+it comes to managing a school's network, for example.
+
+
Of course, there is more to say about Skolelinux than the
+availability of the software included, its flexibility in various
+scenarios is something I can't wait to experiment "into the wild" (I
+only played with virtual machines so far). And I am sure there is a
+lot more I haven't discovered yet about it, being so new within the
+project.
+
+
What do you see as the disadvantages of Skolelinux / Debian
+Edu?
+
+
As usual, when it comes to Debian Blends, I see as the biggest
+disadvantage the lack of a numerous team dedicated to the
+project. Every day I see the same names in the changelogs, and I have
+a constantly fear of the bus factor in this story. I'd like to see
+Debian Edu advertised more as an entry point into the Debian
+ecosystem, especially amongst newcomers and students. IMHO there are a
+lot low-hanging fruits in terms of bug squashing, and enough
+opportunities to get the feeling of the Debian Project's dynamics. Not
+to mention it's a very fun blend to work on!
+
+
Derived from the previous statement, is the delay in catching up
+with the main Debian release and documentation. This is common though
+to all blends and derivatives, but it's an issue we can all work
+on.
+
+
Which free software do you use daily?
+
+
I can hardly imagine myself spending a day without Vim, since my
+daily routine covers writing code and hacking configuration files. I
+am a fan of the Awesome window manager (but I also like the
+Enlightenment project a lot!),
+Claws Mail due to its ease of
+use and very configurable behaviour. Recently I fell in love with
+Redshift, which helps me
+get through the night without headaches. Of course, there is much more
+stuff in this bag, but I'll need a blog on my own for doing this!
+
+
Which strategy do you believe is the right one to use to
+get schools to use free software?
+
+
Well, on this field, I cannot do much more than experiment right
+now. So, being far from having a recipe for success, I can only assume
+that:
+
+
+
+- schools would like to get rid of proprietary software
+
+- students will love the openness of the system, and will want to
+ experiment with it - maybe we need to harvest the native curiosity
+ of teenagers more?
+
+- there is no "right one" when it comes to strategies, but it would
+ be useful to have some success stories published somewhere, so
+ other can get some inspiration from them (I know I'd promote
+ them!)
+
+- more active promotion - talks, conferences, even small school
+ lectures can do magical things if they encounter at least one
+ person interested. Who knows who that person might be? ;-)
+
+
+
+
I also see some problems in getting Skolelinux into schools; for
+example, in our country we have a great deal of corruption issues, so
+it might be hard(er) to fight against proprietary solutions. Also,
+people who relied on commercial software for all their lives, would be
+very hard to convert against their will.
@@ -825,98 +604,131 @@ git://anonscm.debian.org/collab-maint/pymissile.git".
-
-
9th January 2013
-
One thing that annoys me with Debian and Linux distributions in
-general, is that there is a great package management system with the
-ability to automatically install software packages by downloading them
-from the distribution mirrors, but no way to get it to automatically
-install the packages I need to use the hardware I plug into my
-machine. Even if the package to use it is easily available from the
-Linux distribution. When I plug in a LEGO Mindstorms NXT, it could
-suggest to automatically install the python-nxt, nbc and t2n packages
-I need to talk to it. When I plug in a Yubikey, it could propose the
-yubikey-personalization package. The information required to do this
-is available, but no-one have pulled all the pieces together.
-
-
Some years ago, I proposed to
-use
-the discover subsystem to implement this. The idea is fairly
-simple:
-
-
-
-- Add a desktop entry in /usr/share/autostart/ pointing to a program
- starting when a user log in.
-
-- Set this program up to listen for kernel events emitted when new
- hardware is inserted into the computer.
-
-- When new hardware is inserted, look up the hardware ID in a
- database mapping to packages, and take note of any non-installed
- packages.
-
-- Show a message to the user proposing to install the discovered
- package, and make it easy to install it.
-
-
-
-
I am not sure what the best way to implement this is, but my
-initial idea was to use dbus events to discover new hardware, the
-discover database to find packages and
-PackageKit to install
-packages.
-
-
Yesterday, I found time to try to implement this idea, and the
-draft package is now checked into
-the
-Debian Edu subversion repository. In the process, I updated the
-discover-data
-package to map the USB ids of LEGO Mindstorms and Yubikey devices to
-the relevant packages in Debian, and uploaded a new version
-2.2013.01.09 to unstable. I also discovered that the current
-discover
-package in Debian no longer discovered any USB devices, because
-/proc/bus/usb/devices is no longer present. I ported it to use
-libusb as a fall back option to get it working. The fixed package
-version 2.1.2-6 is now in experimental (didn't upload it to unstable
-because of the freeze).
-
-
With this prototype in place, I can insert my Yubikey, and get this
-desktop notification to show up (only once, the first time it is
-inserted):
-
-

-
-
For this prototype to be really useful, some way to automatically
-install the proposed packages by pressing the "Please install
-program(s)" button should to be implemented.
-
-
If this idea seem useful to you, and you want to help make it
-happen, please help me update the discover-data database with mappings
-from hardware to Debian packages. Check if 'discover-pkginstall -l'
-list the package you would like to have installed when a given
-hardware device is inserted into your computer, and report bugs using
-reportbug if it isn't. Or, if you know of a better way to provide
-such mapping, please let me know.
-
-
This prototype need more work, and there are several questions that
-should be considered before it is ready for production use. Is dbus
-the correct way to detect new hardware? At the moment I look for HAL
-dbus events on the system bus, because that is the events I could see
-on my Debian Squeeze KDE desktop. Are there better events to use?
-How should the user be notified? Is the desktop notification
-mechanism the best option, or should the background daemon raise a
-popup instead? How should packages be installed? When should they
-not be installed?
-
-
If you want to help getting such feature implemented in Debian,
-please send me an email. :)
+
+
12th June 2013
+
There is a certain cross-over between the
+Debian Edu / Skolelinux
+project and the Edubuntu
+project, and for example the LTSP packages in Debian are a joint
+effort between the projects. One person with a foot in both camps is
+Jonathan Carter, which I am now happy to present to you.
+
+
Who are you, and how do you spend your days?
+
+
I'm a South-African free software geek who lives in Cape Town. My
+days vary quite a bit since I'm involved in too many things. As I'm
+getting older I'm learning how to focus a bit more :)
+
+
I'm also an Edubuntu contributor and I love when there are
+opportunities for the Edubuntu and Debian Edu projects to benefit from
+each other.
+
+
How did you get in contact with the Skolelinux / Debian Edu
+project?
+
+
I've been somewhat familiar with the project before, but I think my
+first direct exposure to the project was when I met Petter
+[Reinholdtsen] and Knut [Yrvin] at the Edubuntu summit in 2005 in
+London. They provided great feedback that helped the bootstrapping of
+Edubuntu. Back then Edubuntu (and even Ubuntu) was still very new and
+it was great getting input from people who have been around longer. I
+was also still very excitable and said yes to everything and to this
+day I have a big todo list backlog that I'm catching up with. I think
+over the years the relationship between Edubuntu and Debian-Edu has
+been gradually improving, although I think there's a lot that we could
+still improve on in terms of working together on packages. I'm sure
+we'll get there one day.
+
+
What do you see as the advantages of Skolelinux / Debian
+Edu?
+
+
Debian itself already has so many advantages. I could go on about
+it for pages, but in essence I love that it's a very honest project
+that puts its users first with no hidden agendas and also produces
+very high quality work.
+
+
I think the advantage of Debian Edu is that it makes many common
+set-up tasks simpler so that administrators can get up and running
+with a lot less effort and frustration. At the same time I think it
+helps to standardise installations in schools so that it's easier for
+community members and commercial suppliers to support.
+
+
What do you see as the disadvantages of Skolelinux / Debian
+Edu?
+
+
I had to re-type this one a few times because I'm trying to
+separate "disadvantages" from "areas that need improvement" (which is
+what I originally rambled on about)
+
+
The biggest disadvantage I can think of is lack of manpower. The
+project could do so much more if there were more good contributors. I
+think some of the problems are external too. Free software and free
+content in education is a no-brainer but it takes some time to catch
+on. When you've been working with the same proprietary eco-system for
+years and have gotten used to it, it can be hard to adjust to some
+concepts in the free software world. It would be nice if there were
+more Debian Edu consultants across the world. I'd love to be one
+myself but I'm already so over-committed that it's just not possible
+currently.
+
+
I think the best short-term solution to that large-scale problem is
+for schools to be pro-active and share their experiences and grow
+their skills in-house. I'm often saddened to see how much money
+educational institutions spend on 3rd party solutions that they don't
+have access to after the service has ended and they could've gotten so
+much more value otherwise by being more self-sustainable and
+autonomous.
+
+
Which free software do you use daily?
+
+
My main laptop dual-boots between Debian and Windows 7. I was
+Windows free for years but started dual-booting again last year for
+some games which help me focus and relax (Starcraft II in
+particular). Gaming support on Linux is improving in leaps and bounds
+so I suppose I'll soon be able to regain that disk space :)
+
+
Besides that I rely on Icedove, Chromium, Terminator, Byobu, irssi,
+git, Tomboy, KVM, VLC and LibreOffice. Recently I've been torn on
+which desktop environment I like and I'm taking some refuge in Xfce
+while I figure that out. I like tools that keep things simple. I enjoy
+Python and shell scripting. I went to an Arduino workshop recently and
+it was awesome seeing how easy and simple the IDE software was to get
+up and running in Debian compared to the users running Windows and OS
+X.
+
+
I also use mc which some people frown upon slightly. I got used to
+using Norton Commander in the early 90's and it stuck (I think the
+people who sneer at it is just jealous that they don't know how to use
+it :p)
+
+
Which strategy do you believe is the right one to use to
+get schools to use free software?
+
+
I think trying to force it is unproductive. I also think that in
+many cases it's appropriate for schools to use non-free systems and I
+don't think that there's any particular moral or ethical problem with
+that.
+
+
I do think though that free software can already solve so so many
+problems in educational institutions and it's just a shame not taking
+advantage of that.
+
+
I also think that some curricula need serious review. For example,
+some areas of the world rely heavily on very specific versions of MS
+Office, teaching students to parrot menu items instead of learning the
+general concepts. I think that's very unproductive because firstly, MS
+Office's interface changes drastically every few years and on top of
+that it also locks in a generation to a product that might not be the
+best solution for them.
+
+
To answer your question, I believe that the right strategy is to
+educate and inform, giving someone the information they require to
+make a decision that would work for them.
@@ -924,27 +736,108 @@ please send me an email. :)
-
-
2nd January 2013
-
During Christmas, I have worked a bit on the Debian support for
-LEGO Mindstorm
-NXT. My son and I have played a bit with my NXT set, and I
-discovered I had to build all the tools myself because none were
-already in Debian Squeeze. If Debian support for LEGO is something
-you care about, please join me on the IRC channel
-#debian-lego (server
-irc.debian.org). There is a lot that could be done to improve the
-Debian support for LEGO designers. For example both CAD software
-and Mindstorm compilers are missing. :)
-
-
Update 2012-01-03: A
-project page
-including links to Lego related packages is now available.
+
+
11th June 2013
+
When installing RedHat, Fedora, Debian and Ubuntu on some machines,
+the screen just turn black when Linux boot, either during installation
+or on first boot from the hard disk. I've seen it once in a while the
+last few years, but only recently understood the cause. I've seen it
+on HP laptops, and on my latest acquaintance the Packard Bell laptop.
+The reason seem to be in the wiring of some laptops. The system to
+control the screen background light is inverted, so when Linux try to
+turn the brightness fully on, it end up turning it off instead. I do
+not know which Linux drivers are affected, but this post is about the
+i915 driver used by the
+Packard Bell
+EasyNote LV, Thinkpad X40 and many other laptops.
+
+
The problem can be worked around two ways. Either by adding
+i915.invert_brightness=1 as a kernel option, or by adding a file in
+/etc/modprobe.d/ to tell modprobe to add the invert_brightness=1
+option when it load the i915 kernel module. On Debian and Ubuntu, it
+can be done by running these commands as root:
+
+
+echo options i915 invert_brightness=1 | tee /etc/modprobe.d/i915.conf
+update-initramfs -u -k all
+
+
+
Since March 2012 there is
+a
+mechanism in the Linux kernel to tell the i915 driver which
+hardware have this problem, and get the driver to invert the
+brightness setting automatically. To use it, one need to add a row in
+the
+intel_quirks array in the driver source
+drivers/gpu/drm/i915/intel_display.c (look for "static
+struct intel_quirk intel_quirks"), specifying the PCI device
+number (vendor number 8086 is assumed) and subdevice vendor and device
+number.
+
+
My Packard Bell EasyNote LV got this output from lspci
+-vvnn for the video card in question:
+
+
+00:02.0 VGA compatible controller [0300]: Intel Corporation \
+ 3rd Gen Core processor Graphics Controller [8086:0156] \
+ (rev 09) (prog-if 00 [VGA controller])
+ Subsystem: Acer Incorporated [ALI] Device [1025:0688]
+ Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- \
+ ParErr- Stepping- SE RR- FastB2B- DisINTx+
+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- \
+ SERR- [disabled]
+ Capabilities:
+ Kernel driver in use: i915
+
+
+
The resulting intel_quirks entry would then look like this:
+
+
+struct intel_quirk intel_quirks[] = {
+ ...
+ /* Packard Bell EasyNote LV11HC needs invert brightness quirk */
+ { 0x0156, 0x1025, 0x0688, quirk_invert_brightness },
+ ...
+}
+
+
+
According to the kernel module instructions (as seen using
+modinfo i915), information about hardware needing the
+invert_brightness flag should be sent to the
+dri-devel
+(at) lists.freedesktop.org mailing list to reach the kernel
+developers. But my email about the laptop sent 2013-06-03 have not
+yet shown up in
+the
+web archive for the mailing list, so I suspect they do not accept
+emails from non-subscribers. Because of this, I sent my patch also to
+the Debian bug tracking system instead as
+BTS report #710938, to make
+sure the patch is not lost.
+
+
Unfortunately, it is not enough to fix the kernel to get Laptops
+with this problem working properly with Linux. If you use Gnome, your
+worries should be over at this point. But if you use KDE, there is
+something in KDE ignoring the invert_brightness setting and turning on
+the screen during login. I've reported it to Debian as
+BTS report #711237, and
+have no idea yet how to figure out exactly what subsystem is doing
+this. Perhaps you can help? Perhaps you know what the Gnome
+developers did to handle this, and this can give a clue to the KDE
+developers? Or you know where in KDE the screen brightness is changed
+during login? If so, please update the BTS report (or get in touch if
+you do not know how to update BTS).
@@ -964,6 +857,18 @@ including links to Lego related packages is now available.
January (11)
+
February (9)
+
+
March (9)
+
+
April (6)
+
+
May (9)
+
+
June (10)
+
+
July (5)
+
2012
@@ -1106,37 +1011,37 @@ including links to Lego related packages is now available.
bankid (4)
-
bitcoin (5)
+
bitcoin (7)
bootsystem (12)
bsa (2)
-
debian (69)
+
debian (82)
-
debian edu (118)
+
debian edu (137)
-
digistan (9)
+
digistan (10)
-
docbook (7)
+
docbook (9)
drivstoffpriser (4)
-
english (175)
+
english (208)
fiksgatami (21)
fildeling (12)
-
freeculture (10)
+
freeculture (11)
-
frikanalen (9)
+
frikanalen (11)
-
intervju (32)
+
intervju (37)
-
isenkram (5)
+
isenkram (7)
-
kart (17)
+
kart (18)
ldap (8)
@@ -1146,17 +1051,17 @@ including links to Lego related packages is now available.
multimedia (25)
-
norsk (219)
+
norsk (234)
-
nuug (148)
+
nuug (153)
-
offentlig innsyn (6)
+
offentlig innsyn (8)
open311 (2)
-
opphavsrett (41)
+
opphavsrett (44)
-
personvern (61)
+
personvern (65)
raid (1)
@@ -1164,7 +1069,7 @@ including links to Lego related packages is now available.
rfid (2)
-
robot (6)
+
robot (7)
rss (1)
@@ -1172,25 +1077,25 @@ including links to Lego related packages is now available.
scraperwiki (2)
-
sikkerhet (28)
+
sikkerhet (29)
sitesummary (4)
skepsis (4)
-
standard (39)
+
standard (43)
stavekontroll (3)
-
stortinget (5)
+
stortinget (7)
-
surveillance (12)
+
surveillance (15)
sysadmin (1)
valg (7)
-
video (35)
+
video (38)
vitenskap (4)
@@ -1201,7 +1106,7 @@ including links to Lego related packages is now available.
- Created by Chronicle v4.4
+ Created by Chronicle v4.6