Lomoco

From CBLFS
Jump to navigationJump to search
Download Source: http://lomoco.linux-gamers.net/files/lomoco-1.0.tar.gz
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/lomoco/lomoco-1.0-udev_update-1.patch

Introduction to Lomoco

lomoco can configure vendor-specific options on Logitech USB mice.

Project Homepage: Unknown

Dependencies

Required

Non-Multilib

Compile the package:

patch -Np1 -i ../lomoco-1.0-udev_update-1.patch &&
./autogen.sh --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

32Bit

Compile the package:

patch -Np1 -i ../lomoco-1.0-udev_update-1.patch &&
CC="gcc ${BUILD32}" ./autogen.sh --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

patch -Np1 -i ../lomoco-1.0-udev_update-1.patch &&
CC="gcc ${BUILDN32}" ./autogen.sh --prefix=/usr &&
make

Install the package

make install

64Bit

Compile the package:

patch -Np1 -i ../lomoco-1.0-udev_update-1.patch &&
CC="gcc ${BUILD64}" ./autogen.sh --prefix=/usr &&
make

Install the package

make install

Configuring

Creating Udev Rules

From the top level directory run the following command to generate the udev rule from the mouse information in src/lomoco.c and copy it to the rules.d directory:

make udev-rules &&
install -v -m644 udev/lomoco.rules /etc/udev/rules.d/90-lomoco.rules

On Non-Multilib systems copy udev.lomoco to /lib/udev/:

install -v -m755 udev/udev.lomoco /lib/udev/lomoco

On Multilib systems copy udev.lomoco to /lib64/udev/:

install -v -m755 udev/udev.lomoco /lib64/udev/lomoco

Configuring lomoco

The lomoco script that the udev rule created above will exec looks for a configuration file at /etc/sysconfig/logitech_mouse. Create it with the following command:

cat > /etc/sysconfig/logitech_mouse << "EOF"
# Begin /etc/sysconfig/logitech_mouse

LOGITECH_MOUSE_RESOLUTION="400"
# Possible Resolutions Are: 400 800 1200 1600 2000

# SmartScroll/Cruise Control (SMS command set)
LOGITECH_MOUSE_DISABLE_CC="no"

# End /etc/sysconfig/logitech_mouse
EOF

Contents

Installed Programs: lomoco
Installed Libraries: None
Installed Directories: None

Short Descriptions

lomoco lomoco can configure vendor-specific options on Logitech USB mice.