[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#436722: ITP: jockey -- user interface and desktop integration for driver management



Hello Julian, hello Petter,

Petter Reinholdtsen [2010-04-11 19:36 +0200]:
> Sound good.  I had a look at the source, and did not find much ubuntu
> specific in it.  The repository names in jockey/oslib.py need to be
> adjusted (restricted/multiverse), for sure, but I did not find any
> other Ubuntu specific code (did not check al of the source).

Some details about that: Most of Jockey's code is OS independent. In
particular, trunk (bzr branch lp:jockey) does not have any
Debian/Ubuntu specifics. 

Everything which is Linux specific is contained in jockey/oslib.py,
which needs to be implemented on a particular distro. trunk has an
implementation for Linux and PackageKit, and the test suite ensures
that it's working with at least Ubuntu's PackageKit; about a year ago
I also got it working on Fedora Core 10.

The Ubuntu branch changes jockey/oslib.py to use python-apt and dpkg,
since that is quite a bit faster and probably also more reliable than
PackageKit.

It's probably best if you'd just run the test suite (tests/run) on
current Sid and see how far you get. I also have some tests for the
GTK/KDE implementations (tests/run-gtk, tests/run-kde); they are a bit
brittle, but they should be good enough for a coarse check whether
everything is alright with pyqt/pykde.

The other distro specific bits are the available handlers in
data/handlers/. Some of them are probably alright for Debian (like
b43 or sl_modem), but some others will need heavy adaption. In
Ubuntu we have quite a complex structure for the nVidia drivers, which
is radically different than Debian's.

For testing handlers on a machine which doesn't need restricted
drivers (or not the one you want to test), I recommend creating a
"fake" modalias file in /usr/share/jockey/modaliases/local which maps
a kmod/package name to a "match everywhere" glob:

-------------------- 8< -------------------
alias pci:* wl bcmwl-kernel-source
alias pci:* b43
alias pci:* nvidia nvidia-current
alias pci:* nvidia nvidia-173
alias pci:* fglrx xorg-driver-fglrx
-------------------- 8< -------------------

These files are evaluated in the LocalKernelModulesDriverDB class.

Please let me know if you have trouble with it.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature


Reply to: