blino's website

Free software developer and more

To show the list of flags and langs together with a rpm files list:

rpm -q --queryformat '[%{FILEFLAGS:fflags}\t%{FILELANGS}\t%{FILEMODES:perms}\t%{FILENAMES}\n]' <package>

Complete list of rpm tags:

rpm --querytags


While trying to un-blank monitor in a script, I stumbled over various ways to send fake X11 events (for example keyboard ones). Most tools use the XTest X11 extension (like we do in our numlock helper), like Claudio's Anarkey.

For example, xdotool is a rather complete tool to simulate of lot of X11 events, allowing to send keyboard, mouse, and window events.



When turning a monitor off and on (with xset dpms force on) from scripts, the monitor may not be un-blanked automatically.

A trick is to run xset s reset to reset the screensaver and force un-blank (some suggest to use xset s activate, which works, but does not look correct).



This LFS script allows to extract supported PCI IDs from X.org drivers, by dlopen()ing them http://wiki.linuxfromscratch.org/livecd/browser/trunk/packages/xorg-udev-rules/extract_pci_ids.c

For the record, the Makefile uses a weird trick to export Xorg symbols /o\

nm -D /usr/bin/Xorg | egrep ' (B|D) ' | cut -d ' ' -f 3 | grep -v __


SCSI drivers are limited to 15 partitions, kpartx can be used to get more partitions: https://bugzilla.novell.com/show_bug.cgi?id=218122



all install:
        make $(MAKECMDGOALS) -C po




From taskset(1):

taskset  is  used  to  set  or  retrieve  the CPU affinity of a running
process given its PID or to launch a  new  COMMAND  with  a  given  CPU
affinity.   CPU affinity is a scheduler property that "bonds" a process
to a given set of CPUs on the system.  The Linux scheduler  will  honor
the  given CPU affinity and the process will not run on any other CPUs.


It's actually quite easy to test the stage2 installer, I don't know why I'm so resistant to do it.

  • install build dependencies
sudo urpmi /SRPMS/contrib/release/drakx-installer-stage2-10.4.171-1mdv2008.0.src.rpm
  • build and install stage2 in /export
cd ~/vc/mandriva/soft/drakx/trunk/perl-install/install
make
make install
  • boot stage1 with automatic=method:nfs,network:dhcp,server:dynamo,directory:/export on the kernel command line
  • update /export after each pm file modification
sudo make install_pms
  • restart installation with Ctrl+Alt+Home after modifications (not really clean)


List of upstream bugs in migration-assistant: https://bugs.launchpad.net/ubuntu/+source/migration-assistant/





The MIT-SCREEN-SAVER extension of the Xserver allows to control screensaver features, but also to query screensaver info on specific windows.

XScreenSaverQueryInfo() allows to know the time since the last input was received from the user on any of the input devices, which is quite useful to detect if there is some activity in a window (used by pidgin to set away status).



The kernel allows to pass <irq>,<io>,<mem_start>,<mem_end>,<name> options to interfaces using the netdev= option and the deprecated ether= one (kernel-parameters.txt)

Surprisingly, the mem_start option does not match at all its initial meaning (in the context of shared memory). And the Linux devices drivers book does not clearly states that it is now used otherwise.

The Ethernet HOWTO documents it as PARAM_1, which is not very meaningful on purpose. Some drivers uses this mem_start/PARAM_1 field for debugging purposes, some for DMA channel selection, and most for media type (if_port, which can be IF_PORT_10BASET or IF_PORT_100BASETX for example). This is the case in the epic100 driver, which I stumbled upon on old bug #888



X.org 7.3 introduces input devices hotplug (wiki) (announce). The X server now registers a D-Bus name, which allows to add/remove input devices on the fly using simple D-Bus requests. A simple python server as been posted, it watches HAL device events and forwards them to the X server if appropriate.



  • enforcing consistency between userspace and module versions: kmod() provides for kernel modules (#30935)
  • enforcing availability of dkms modules when kernel is upgraded (#30907):
    • automatically upload prebuilt dkms package for updates media
    • make dkms prebuilt packages provide dkms-kernel-<flavour> == <kver>
    • make kernel packages conflict with dkms-kernel-<flavour> < <kver>
    • automatically install kernel-source-<flavour>-latest in DrakX when installing dkms source packages
  • automatically upgrade to new module versions: create dkms-<name>-latest packages and prebuilt <name>-kernel-<flavour>-latest packages
  • use -devel packages


/notes/tech/linux/mandriva Todo Wed, 24 Jan 2007
  • update hermes
  • update jasper
  • package sing
  • fix dmidecode with CL50/CL56


From /soft/ldetect-lst/trunk

MODULE=at76_usb
grep $MODULE /lib/modules/`uname -r`/modules.usbmap  > $MODULE.usbmap
./convert/merge2pcitable.pl kernel_usbmap $MODULE.usbmap lst/usbtable > usbtable
diff -u lst/usbtable .


blosxom Optimised for standards.
Olivier Blin (2005)