Browsing posts in: Nicht kategorisiert

Samsung Galaxy S6 Download Mode

Usually you boot your S6 into Download (or Odin) Mode by shutting it down and pressing and holding the Power, Home and Volume Down Buttons. But in my case Odin is not able to connect to the phone. The only way that works for me is by using adb:

adb reboot download

When the phone is running, USB Debugging must be enabled in the Developer Settings and I have to set the USB connection to MIDI Device, otherwise adb is not able to connect.

On related news: I now run Android 7 via Lineage OS.

Flattr this!


HDMI Audio with Zotac ZBOX AD02 (AMD Fusion / Neo X2)

Recently, I’ve been working on a solution for playing videos in public places (indoors). The requirement was an HD TV with an attached mini PC box, which plays a playlist created via web interface on a central server.
All the movies will be uploaded to the server and downloaded by the boxes through FTP. The box features a listening socket, for controlling the software remotely and checking the online-status. I used mplayer as the video player.
It was quite a fun project, involving custom configuration of X.org and a lot of Perl-coding on the box-side. It just boots up and starts playing it’s local playlist without user interaction. The server runs a PHP application for managing the boxes and creating playlists.

The box itself is a Zotac ZBOX AD02 with AMD Fusion chipset. It features an energy efficient AMD Neo X2 CPU, which contains a Radeon HD 3200 graphics core (It even supports AMD-V; AMD’s virtualization technology). It’s also got VESA mounting gear, so you can mount it to the back of most displays / TVs.
Everything went pretty good at first. I set up Debian 6 and installed AMD’s proprietary vdeo driver and got pretty smooth 1080p video playback. Wonderful video performance for such a small and relatively cheap PC!

My setup at this time was, that my old CRT monitor was connected through VGA and sound went through the front headphone jack. So as I was trying to hook the box to my TV through HDMI, I noticed there was no sound playing. I’ve tried a lot of things, from changing to the open source video drivers (radeon / radeonhd) to fiddling around with ALSA and some other stuff.
Finally, after lots of googleing, I found the cause: AMD’s HDMI Sound got supported by ALSA in version 1.0.23 (which was released in April 2010 …). Debian’s Kernel 2.6.32-5 still used ALSA 1.0.19, so I had to upgrade.

I downloaded the current Linux kernel source from kernel.org and followed this How To to build and install the debian package.

Then I had to disable the onboard Azalia sound chip in the BIOS settings, as there was still no HDMI audio as long as it was activated.

After booting the new kernel image, there is still one important step. I had to unmute the S/PDIF channel in alsamixer. If you don’t have the alsamixer command, you need to install alsa-utils through apt or aptitude.
In alsamixer there should only be the S/PDIF channel, so press m to unmute it. You can see it’s not mute when there is oo in the above box, instead of MM.

Now to find out the exact ALSA device/channel configuration to use for you applications, run aplay -l and you will see something like this:

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0

As we only have AMD’s HDMI Audio enabled, we only see this one soundcard. In ALSA speak this is device 0,3. Try playing a video or audiofile with mplayer now, to see if your sound is working correctly:

mplayer -ao alsa:device=plughw=0.3 /path/to/file.mp3

I use plughw here, because it automatically converts the audio stream to the right format for the soundcard, as opposed to hw, where the audio stream must be in the right format already.
Some applications (like aplay) take the device and channel separated by a comma (,) instead of a dot, so be aware of that.

Flattr this!


Ubuntu: Tasten spinnen in vmware

Seit Intrepid (8.10) stimmt bei einigen Tasten die Belegung in vmware nicht mehr. Pfeil unten z.B. reagiert wie die Windowstaste, Entf öffnet Kontextmenüs usw. Lässt sich aber einfach beheben.
Einfach folgende Zeilge in /etc/vmware/config eintragen:

xkeymap.nokeycodeMap = true

Flattr this!



They’re coming to take me away, ha-haaa

So als weiterführende Info zum Sonata-Bericht: Das was ich als „Intro“ zu Black Sheep bezeichnet habe, ist der Refrain von „They’re coming to take me away, ha-haaa“ von Napoleon XIV (1966).
Witziges, krankes lied. Statt dem Original Video hier ein AMV, das vom Thema denke ich sehr gut zum Lied passt ;)

Lyrics? Lyrics.

Flattr this!



InnoDB

Ich hab mir ehrlich gesagt noch nie Gedanken über die Tabellenformate von MySQL gemacht. MyISAM klingt doch sehr gut, als verbesserte Version der ISAM-Engine. Funktioniert ja auch (annähernd) perfekt. Wenn mal was kaputt geht, kann man es im Normalfall mit REPAIR TABLE oder wenn’s sein muss mit myisamcheck wieder reparieren.
Continue Reading

Flattr this!


lotro/Windows/Linux

Vorrige Woche hab ich von einem Kumpel einen Lotro Account bekommen. Tja, mit Wine komm ich zwar bis zum Verbinden zum Server, aber dann kommt nur ein Verlassen-Button ^^

Verlasasen-Button

Nunja, dann musste halt wieder mal ein Windows her.
Continue Reading

Flattr this!


Linux und Marvell Yukon NICs…

So, nachdem ich nun eine neue Festplatte hab und Ubuntu als Haupt-OS drauf ist, kann ich mich mal ans kopieren von der alten machen. So schlimm hin war sie ja nicht, nur Windows hat sich ständig angeschissen. Das ging auf die Performance und ist zum Schluss ständig abgestürzt ^^

Übrigens, die Linuxtreiber für die meisten Marvell Yukon Gigabit Netzwerkkarten, die mittlerweile auf vielen Mainboards zu finden sind, sind eine Katastrophe. Nach ein bisschen Datentransfer blockt dieser einfach alles weitere. Ein ifdown/ifup hilft dann meistens für ein paar Minuten, aber nicht immer. Ein rmmod sky2, insmod [path/to/]sky2.ko ist noch besser, da hat er scheinbar ein bis zwei Minuten länger funktioniert ^^
Continue Reading

Flattr this!


das Zwischennetz

Ich hab nochmal kurz über das Netzwerkkonzept mit dem neuen 4700er sinniert. Also ganz einfach, Modem kriegt a /30er Netz und Link zu den Mitbewohnern kriegt a /30er Netz. Mein Corenetz (10.133.7.0/24) bleibt dann auf meiner Seite.
Continue Reading

Flattr this!


Seiten:12