Weichere Mausbeschleunigung ab Xorg 1.7

Seit Xorg 1.7 werden die Bewegungen der Maus „vorhersehbarer“ berechnet und in Zeigerbewegungen auf dem Bildschirm umgesetzt, was vor allem das „über das Ziel hinausschießen“ des Mauszeigers bei Systemen unter Last beheben soll. Einhergehend gibt es ein neues empfohlenes Beschleunigungsprofil, welches allerdings noch nicht Standard ist, aber schon getestet werden kann. Dieses Profil läßt sich mit dem „xinput“-Programm oder auch per Hal-Konfiguration aktivieren. Ich habe es bei mir per Hal-Konfiguration aktiviert:

$ cd /etc/hal/fdi/policy

$ ls *.fdi
10-ntfs3g.fdi 10-ntfs-policy.fdi 30-x11-input.fdi

$ sudo vi 30-x11-input.fdi
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">
<match key="info.capabilities" contains="input.mouse">
<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.x11_options.AccelerationProfile" type="string">2</merge>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.layout" type="string">de</merge>
<merge key="input.xkb.variant" type="string">deadgraveacute</merge>
<merge key="input.xkb.options" type="string">compose:rwin</merge>
<merge key="input.xkb.autorepeat" type="string">500 30</merge>
</match>
</deviceinfo>

Interessant ist hier die Zeile mit dem AccelerationProfile. Profil Nr. 2 ist hier das neue Profil. Eine gleichnamige Option kann natürlich auch direkt in die xorg.conf eingetragen werden bei dem jeweiligen Gerät. Die übrigen Zeilen legen die Konfiguration für meine Tastatur fest.

Damit ich nicht erst neu starten muß, oder um mit den Einstellungen zu experimentieren, habe ich mir xinput installiert, und dort zunächst das Gerät gesucht:

$ sudo emerge -ua xinput
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HID 046a:0027 id=6 [slave pointer (2)]
⎜ ↳ HID 046a:0027 id=7 [slave pointer (2)]
⎜ ↳ Logitech USB Optical Mouse id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ HID 046a:0027 id=8 [slave keyboard (3)]
↳ Power Button id=10 [slave keyboard (3)]
↳ Power Button id=11 [slave keyboard (3)]

$ xinput list-props "Logitech USB Optical Mouse"
Device 'Logitech USB Optical Mouse':
Device Enabled (115): 1
Device Accel Profile (234): 0
Device Accel Constant Deceleration (235): 1.000000
...

$ xinput set-prop "Logitech USB Optical Mouse" "Device Accel Profile" 2

Vermutlich sollte man anschließend die Mausbeschleunigung wieder ein wenig zurücknehmen, falls man diese vorher höher gestellt hat, da der Beschleunigungseffekt nun früher und graduell einsetzt statt wie vorher ab einer gewissen Schwelle und schlagartig.

Veröffentlicht in Gentoo, Linux, Xorg. Schlagwörter: , , , , . Leave a Comment »

Kein Sound mehr in KDE seit PulseAudio-Update?

Das war schwer, da es nicht alle meine Rechner betraf. Die Lösung war am Ende ganz einfach: Konsole starten, alsamixer ausführen und den PulseAudio-Channel unmuten. Siehe Screenshot:

Veröffentlicht in Gentoo, KDE. Schlagwörter: , , , , . Leave a Comment »

Rediscover Your Music on a Rant

The new Amarok 2.2.1 is great. Editing metadata finally seems not to disturb Amarok’s stability and doesn’t make the collection scanner choke and eat endless amounts of memory. And finally I can use it as the coolest „ambient“ music player again: Party mode is back. Err, okay it was back before – BUT: it finally works. Not to forget to mention its performance has vastly improved. To conclude these words: Yeah, it’s finally back on my desktop. Thank you, dear Amarok team. Great job!

But of course my increased usage puts the spot on all the bad things I start to discover. It’s my contribution to an ongoing rant on Amarok. There are some things I hate. And I really hate them. At least there seems to be no more show-stoppers now (or I didn’t discover them yet). Here is what I hate:

The Redesign of the Toolbar

That is really annoying. What did you guys think when you moved the playlist buttons to the middle? This makes in no way sense to me, because:

  • I have my Amarok OSD in the top center of the screen – exactly where the buttons are. Changing the track covers the buttons. I fixed this by changing to the slim toolbar but I miss the big buttons then (which I hated when they first came up btw).
  • It is waste of screen real estate. Come on? We are all going to have widescreens. And what do you guys do? You make a redesign targetted to good old 4:3 times: Less width, more height. The now-ultra-long progress bar looks ugly. The new layout has no place for important and/or useful buttons and info texts which could’ve been put there otherwise. In the end it’s totally counter-productive to the 3-column widescreen layout of Amarok. Please change that.

Strange Bugs

Many new bugs have been introduced, some old annoying bugs still remain:

  • You cannot remove track numbers from the metadata. Once set, they will always remain there. Trying to remove them and tabbing to the next field simply make the numbers reappear. Clicking on „save“ while still in the field also doesn’t help – it’s just ignored and reset to the previous value. Does nobody use the metadata editor that it is treated such poorly?
  • Using the metadata editor often results in Amarok to freeze for some seconds (the sound however continues to play, so it’s not that annoying).
  • The playlist still has strange ideas of what should be grouped together and what not – most often when you remove a track from the playlist.
  • ALL MY SONGS ARE ZERO SECONDS LONG?! No, I can’t believe that! BTW: The progress bar shows interesting timing information because of that. I first thought this was one of the hard-to-understand inventions of the developers before I realized that it is directly connected to the zero-second long tracks. See the above screenshots.
  • Removing the current played track from the playlist makes Amarok jump to the start of the playlist instead of stepping to the „next“ song. It’s annoying. I step into that pitfall over and over again (removing a track and skipping to next song afterwards). Argh!
  • I’m pretty clueless about how the replay-gain feature works. Where’s the automatic gain scanner and volume adjustment I so much loved in Amarok 1.4? I have the suspicion that this setting simply does nothing. My collection has replay-gain tags but songs come out of my speakers at surprisingly (and disturbing) different volume levels. I consider that non-working and thus a bug.

Final Words

You lucky guys: I’m still hoping. No wrong… I’ve got hope again. Seems you are finally concentrating on fixing bugs instead of inventing strange new features. Hmm, oh well – wrong again. Your new toolbar is a strange new invention. At least you fixed some annoying bugs. Yeah, probably in the end, perhaps, maybe you rock… Keen on the next release. 😉

Veröffentlicht in Amarok, KDE. Schlagwörter: , , , . Leave a Comment »

Bremerhaven mit 3D-Gebäuden in GoogleEarth

Alter Hafen Bremerhaven in GoogleEarth mit 3D-Gebäuden, Sicht auf RadarturmFaszinierend finde ich, daß für Bremerhaven bereits die ersten 3D-Gebäude auftauchen. Auch in der Umgebung (z.B. Grundschule Schiffdorf). In Bremerhaven sind aktuell zu sehen – allerdings noch nicht alles sehr detailliert oder hübsch: Columbus Center, AWI, Radarturm, Simon-Loschen-Leuchtturm und einige Museumsschiffe. Vom Columbus Center sind leider nur die Türme drin, nicht der gesamte Komplex inklusive Parkgarage und Einkaufspassage. Außerdem schweben ein paar verwaiste Striche im Himmel. Aber ich bin mir sicher, daß die Gebäude sowieso noch nicht fertig sind und noch daran gefeilt wird.

Ich möchte allen 3D-Bastlern hiermit zur guten Arbeit gratulieren und natürlich motivieren, damit weiter zu machen. Ich hätte fast Lust, selbst ein paar Gebäude beizusteuern, was wohl mit Google Sketchup recht einfach zu erledigen wäre – aber leider keine Zeit, mich damit auseinanderzusetzen.

Falls ihr noch weitere Gebäude entdeckt oder einstellt, so hinterlaßt doch hier einen Kommentar.

Das Bild links/oben ist © Google 2009 sowie weiterer auf dem Bildausschnitt genannter Rechteeigentümer.

Basic Apache Performance Tips

Anyone mass-hosting virtual domains on apache knows the problems. Over the time I collected some basic and important performance tips which I want to give back to the community in aggregated form. Sorry, that I don’t remember all sources of information – so I will mention none. Google will help you. Here’s the list: Den Rest des Beitrags lesen »

Gerade aktuell: Abzocke im Internet

Ein jugendlicher Bekannter schrieb mich gerade an, daß er von 99downloads abgezockt wurde. Dort wird ihm unterstellt, unter Angabe falscher Daten einen offensichtlichen Betrugsversuch begangen zu haben. Belegt wird das ganze mit der offensichtlich richtigen IP. Es geht um 60€ zzgl. Mahngebühren. Die Aufforderung sei die letzte außergerichtliche Mahnung. Außerdem würde die Mail auf dem E-Mail-Weg zugestellt werden, weil die postalische Adresse offensichtlich nicht stimmt. Tja, Harry Potter soll nun verklagt werden. Den Rest des Beitrags lesen »

Veröffentlicht in Abzocke, Internet, Jugendliche. Schlagwörter: , . 3 Comments »

AdoDBRecord updated to version 0.5

This update of AdoDBRecord adds vastly improved functionality to the framework: The most interesting features are associations and association proxies. Customization is another important feature which makes the framework easier adoptable to legacy applications. The finder API has been reworked to accept options and is more flexible now. This will be improved even more during the next versions. You can access properties directly now instead of using the attributes array or functions. The association proxies make use of this – they act like properties. Models can be scoped now to provide standard finder options.

Read more in the wiki…

AdoDBRecord updated to version 0.4

This update of AdoDBRecord adds many functions like STI, testing framework, compatibility to both PHP4 and PHP5, inflectotion framework and inflectors, and some more.

Read more in the wiki…

SecurePoint Appliances: Paßwort zurücksetzen

Aktuelle SecurePoint-Appliances bringen nicht mehr die Standard-Linux-Umgebung mit Befehlen wie „passwd“ und ähnlich mit sich. Hier das Paßwort zurückzusetzen gestaltet sich als schwierig; hinzukommt, daß die kleineren Appliances keinen Monitor- und Tastaturanschluß besitzen und zudem von CompactFlash booten. Der serielle Anschluß gibt zwar die Linux-Konsole aus, jedoch erst, wenn der Kernel läuft. Um die Paßwörter der Datenbank ändern zu können, muß man jedoch die Appliance im Restore-Mode booten – außer man möchte seine Konfiguration verlieren. In letzterem Fall kann man natürlich per Rescue-Image neu installieren.

Das wollte ich allerdings nicht (war relativ aufwändig und gewachsen). Der Trick war, die CF-Karte auszubauen und in einen USB-Kartenleser einzubauen. Als nächstes benötigt man VirtualBox. Man richtet nun in VirtualBox ein virtuelles Festplatten-Image mit Verweis auf ein echtes Device ein. Das geht allerdings nicht über die GUI. Deshalb wechselt man ins Verzeichnis ~/.VirtualBox/VDI und gibt nun dort folgenden Befehl ein:

VBoxManage internalcommands createrawvmdk -filename "SecurePointDisk1.vmdk" -rawdisk /dev/sdc -register

„/dev/sdc“ ist hier durch das Device der eingelegten CF-Karte zu ersetzen. Da dies in der Regel nur als „root“ zugreifbar ist, muß man entweder VirtualBox als root starten (würde ich nicht machen) oder den Eigentümer des Devices mittels „chown“ auf den eigenen User umbiegen (würde ich empfehlen). Wichtig ist: Keinesfalls die CF-Karte irgendwie mounten!

Nun legen wir eine virtuelle Maschine über die VirtualBox-GUI an. Dort verbinden wir den „Primary Master“ mit der eben angelegten „SecurePointDisk1“. Weiter dürfen keine IDE-Geräte verbunden werden – auch keine CD. Das Image booten wir nun. Nun geht es größtenteils nach Leitfaden von SecurePoint weiter:

Im Grub-Menü muß der zweite Menüpunkt („change configuration“) gewählt werden. Aber bitte noch nicht starten, sondern erst mit Tastendruck auf „e“ editieren. Am Ende der Kernelzeile müssen wir den Primary Master auf den Secondary Master umbiegen, da sich dieser nicht in VirtualBox verbinden läßt, SecurePoint hier aber die CF-Karte erwartet. Dazu ergänzen wir folgendes:

„ide0=0x1e8,0x3ee,14“ (brauchen wir gleich noch einmal)

Nun eine Leerzeile am Ende der Liste anfügen und in dieser Ctrl+X drücken. Das Image bootet nun. Der Name der zu bootenden Konfiguration ist „none“. Den Namen der anderen Konfiguration bitte notieren – wir brauchen ihn gleich. Wahrscheinlich heißt sie „wizard“. Nun die Konfiguration „none“ booten. Die Appliance ändert die Boot-Parameter und startet neu. Diesmal den ersten Grub-Menüpunkt booten – nicht vergessen, wieder den Parameter „ide0=…“ zu ergänzen.

Am Ende des Boot-Vorgangs dauert es ggf. ein paar Sekunden, bis die Netzwerk-Geräte konfiguriert sind – kurz warten also, es stört sonst die Eingabe. Jetzt mit User „admin“ und Paßwort „insecure“ anmelden. Man befindet sich nun auf der CLI.

Hier kann mit dem Befehl „config load“ die richtige Konfiguration geladen werden, das Paßwort nach Anleitung von SecurePoint mit „change user“ geändert werden (für „admin“) und die Konfiguration anschließend gespeichert („config save“) und als aktiv gesetzt („config set“) werden.

Jetzt kann die Appliance mit „reboot“ neu gebootet werden und wir lassen sie zum Test einmal komplett in VirtualBox hochfahren (bitte wieder „ide0=…“ ergänzen) und versuchen uns einzuloggen. Alles sollte nun wieder klappen und wir können VirtualBox beenden und die Karte wieder im Gerät einbauen.

AdoDBRecord updated to version 0.3

This update to AdoDBRecord incorporates a convenience method update_attributes() which updates and saves the record comfortably in one pass and returns the result of save() back to the caller.

Read more in the wiki…