Profile

Cover photo
Christoph Haag
37,733 views
AboutPosts

Stream

 
Remote rebooting the raspberry pi. Didn't came back up. I thought it probably failed booting. Turns out it boots fine. Shutting down however...
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
Wow, with 3.14-rc7 the whole sd card system seems to be broken.

I had some usb card reader laying around and tried with it but there's not much of a reaction when I put this card into it and fdisk just hangs with 2 cpus using 100% (I believe 100% i/o, the gray thing in the detailed htop view)

[129619.959734] usb 1-1: reset full-speed USB device number 6 using xhci_hcd
[129619.959786] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
[129620.119687] usb 1-1: reset full-speed USB device number 6 using xhci_hcd
[129620.119754] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 6.
[129620.279936] usb 1-1: reset full-speed USB device number 6 using xhci_hcd
[129620.296733] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880733079b00
[129620.296740] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880733079b40
[129650.915358] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.018801] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.122237] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.225687] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.329103] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.432568] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.535996] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.639455] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.742890] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.846364] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129651.949774] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.053222] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.156654] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.260105] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.363543] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.466986] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.570432] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.673867] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.777293] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.880789] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129652.984198] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.087666] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.191081] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.294528] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.397960] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.501406] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.604871] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.708299] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.811731] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129653.915172] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.018623] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.122059] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.225496] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.332275] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.435717] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.539168] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.642606] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.746081] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.849498] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129654.952932] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.056375] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.159820] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.263251] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.366700] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.470135] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.573620] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.677025] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.780455] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.883940] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129655.987347] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.090795] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.194235] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.297682] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.401125] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.504565] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.608004] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.711455] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.814895] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129656.918322] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.021772] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.125208] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.228657] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.332131] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.435553] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.538983] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.642426] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.745881] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.849312] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129657.952761] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.056201] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.159641] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.263078] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.366523] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.469964] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.573406] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.676846] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.780272] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.883769] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129658.987180] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.090614] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.194062] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.297505] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.404268] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.507732] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.611166] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.714615] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.818049] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129659.921530] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.024941] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.128371] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.231825] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.335259] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.438701] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.542151] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.645584] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.749019] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.852475] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129660.955909] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129661.059370] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129661.162801] usb-storage: Error in queuecommand_lck: us->srb = ffff8807fc806d80
[129737.950369] INFO: task fdisk:623 blocked for more than 120 seconds.
[129737.950377]       Tainted: G           O 3.14.0-1-mainline #1
[129737.950379] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[129737.950382] fdisk           D 0000000000000246     0   623    622 0x00000000
[129737.950389]  ffff88009ee1fb18 0000000000000086 ffff8806c3af62c0 ffff88009ee1ffd8
[129737.950395]  00000000000144c0 00000000000144c0 ffff8806c3af62c0 ffff88009ee1fa68
[129737.950400]  ffffffff8109bf45 ffff88082f2144c0 ffff88009ee1faa8 ffffffff810145e1
[129737.950405] Call Trace:
[129737.950418]  [<ffffffff8109bf45>] ? sched_clock_cpu+0x95/0xe0
[129737.950426]  [<ffffffff810145e1>] ? __switch_to+0x151/0x4d0
[129737.950431]  [<ffffffff8109343a>] ? finish_task_switch+0x4a/0xf0
[129737.950438]  [<ffffffff8152adf9>] ? __schedule+0x3b9/0x8f0
[129737.950443]  [<ffffffff8152b359>] schedule+0x29/0x70
[129737.950449]  [<ffffffff8152b766>] schedule_preempt_disabled+0x16/0x20
[129737.950454]  [<ffffffff8152dbed>] __mutex_lock_slowpath+0x13d/0x390
[129737.950485]  [<ffffffff8152de52>] mutex_lock+0x12/0x22
[129737.950491]  [<ffffffff811ea7f3>] __blkdev_get+0x73/0x4e0
[129737.950496]  [<ffffffff811eae25>] blkdev_get+0x1c5/0x330
[129737.950501]  [<ffffffff811eb03b>] blkdev_open+0x5b/0x80
[129737.950507]  [<ffffffff811af55f>] do_dentry_open+0x1cf/0x2e0
[129737.950514]  [<ffffffff811bc901>] ? __inode_permission+0x41/0xb0
[129737.950518]  [<ffffffff811eafe0>] ? blkdev_get_by_dev+0x50/0x50
[129737.950523]  [<ffffffff811af981>] finish_open+0x31/0x40
[129737.950529]  [<ffffffff811bf722>] do_last+0x572/0xe90
[129737.950534]  [<ffffffff811bcbf6>] ? link_path_walk+0x236/0x8d0
[129737.950539]  [<ffffffff811c00fb>] path_openat+0xbb/0x6b0
[129737.950545]  [<ffffffff811c180a>] do_filp_open+0x3a/0x90
[129737.950550]  [<ffffffff811cdfa7>] ? __alloc_fd+0xa7/0x130
[129737.950556]  [<ffffffff811b0b34>] do_sys_open+0x124/0x220
[129737.950561]  [<ffffffff811b0c4e>] SyS_open+0x1e/0x20
[129737.950565]  [<ffffffff8153746d>] system_call_fastpath+0x1a/0x1f

The usb2 seems to be completely broken. :(
Maybe I stabbed it one time too often with a 3.5mm audio plug before finding the right hole...
1
Niklas Schnelle's profile photoChristoph Haag's profile photo
2 comments
 
Did you file a bug report?
Add a comment...

Christoph Haag

Shared publicly  - 
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
Many people have complained about the youtube/google+ integration so far. I don't really share most of these complaints, just create a second google account for that and just only use it for youtube.

But what does bother me is that now in order to comment on youtube you have to be logged in on google.com.

Try it: Log in to youtube, delete the SID cookie only on google.com and when you try to comment on youtube the next time it will ask you to log in.

Some time ago it was perfectly possible to fully use youtube while only being logged in on youtube.com and not at the google search homepage, but not anymore.

I wonder if their tracking wasn't reliable enough? But on the other hand it couldn't be that many people who actually bothered to log in to youtube and then delete the cookies on google.com and google.<TLD> anyway.
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
Localization at its best

$ astyle --recursive --style=linux *.cpp
Rekursive Option ohne Wildcard
Haben Sie die Absicht Inhalte der Dateiname

Artistic Style ist beendet
 ·  Translate
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
Why not run other Linux distributions in containers?

I thought about trying elementary os on my Archlinux "host", but without the slowness of a VM.

First try: systemd-nspawn

It has a few problems: with b it doesn't boot right and I believe the readonly-ness of /dev/dri/* prevents me from using the gpu anyway. But it kind of works to give access to an X server with xhost and then connect with DISPLAY=:0 etc. But as expected I only get software rendering with llvmpipe with this method. It's surprisingly fast, but still...

Second try: Plain chroot.

Because I want to start X from a chroot. There are several problems to be solved with this setup. I basically have zero regard for any kind of security here. So I just mount -o bind /dev, /proc and /sys into the chroot.

The very first trouble is that udev doesn't seem to want to cooperate. X starts, but input devices don't work. The simple solution I chose is to create a Xorg.conf with the old

Section "ServerFlags"
  Option       "AutoAddDevices"   "false"
EndSection

The xf86-input-kbd driver was missing from the default install so I had to install this too. Then I was able to start X, have a terminal in which I could type. Almost ready.

Then, I started a terminal but didn't get a shell. Well, I already knew that one. Creating the pts thingy in the chroot with this:

mount -t devpts devpts /dev/pts

Next: Trying gnome-session --session pantheon doesn't work because gnome needs dbus. "dbus-daemon --system" in the chroot takes care of that. I have no idea if this interferes with archlinux's dbus but it works.

Then pantheon starts, but again, software rendering with llvmpipe. LIBGL_DEBUG=verbose reveals that it's a permission problem: /dev/dri/* gives access to the "video" group on archlinux, but that group doesn't exist in elementary os. Simple fix:

groupadd -g 91 v
usermod -a -G v username

But it still didn't work. A quick google search reveals that this is because of this session management magic. There actually is a simple workaround: When you login to a tty you already get a session, so if you start X on that tty your session is "upgraded" to an X session with access to the gpu hardware.

So, to bring it together:

First, creating a .xinitrc with xterm or so from which you can start gnome-session --session pantheon (directly starting it is somehow really slow).

tty is a command that shows you on which tty you are at the moment so you can do

startx - :1 vt01

Then start the pantheon session from it, voila. I have now a second X that I can change to with ctrl+alt+f1.

And why almost? Because sound doesn't work. The simple workaround would be to use pulseaudio's network transparency to connect to the pulseaudio in the other X, but there surely is a better way of directly connecting to the right pulseaudio.


So I wonder:
Did someone pack something like this in a nicely useable script?
Does something like this exist as a plan for systemd-nspawn? From my understanding with render nodes, glamor etc. there are all the building blocks for much better setups already here.
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
So if you have one of those mobile contracts where you could use Facebook free of cost, I would think you could grab all TCP/IP packets that are not addressed to Facebook, rewrite the appropriate ip addresses, base64 encode them and post them in a Facebook chat to a bot at home, which would decode the packet, rewrite the source IP address, send the packet, receive the reply, rewrite the appropriate ip addresses again, encode the reply packets with base64, post them as a reply in the Facebook chat and finally decode and receive the reply packets on the mobile device.

I wonder how the performance of ip-over-Facebook would be like and whether they would be angry at you. Maybe you should also encrypt your Facebook messages too...
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
I coincidentally read that zdnet has its 23rd birthday today.

Wasn't the zdnet brand halfway reputable once? Or is it just my impression that more and more of these big online "tech" publications have massively degraded to trying to post just the most offensive troll bait anymore?

Come on, are you really this desperate for attention?
1
Add a comment...

Christoph Haag

Shared publicly  - 
 
I was wondering why writing to the SD card takes so long... Google said I can use sudo kill -USR1 $(pgrep '^dd$') to check on the progress.

579330560 Bytes (579 MB) kopiert, 7773,61 s, 74,5 kB/s

...

okay...

Maybe the driver is in a bad state after my last few unsuccessful writes. After reloading the driver, the next try:

324928000 Bytes (325 MB) kopiert, 184,994 s, 1,8 MB/s

Nice. Slow, but should get ready after a while.

650236416 Bytes (650 MB) kopiert, 460,226 s, 1,4 MB/s

Well, acceptable.

650551808 Bytes (651 MB) kopiert, 993,536 s, 655 kB/s

Hm, it's getting really slow.

WAIT, WHAT? 655 kbyte/s and after 500 seconds it managed to copy 1 MB with that speed?

Somehow I doubt that...
1
Christoph Haag's profile photo
 
650826240 Bytes (651 MB) kopiert, 1426,28 s, 456 kB/s

I think it just gets stuck completely and the speed is an average speed over the whole process.
Add a comment...

Christoph Haag

Shared publicly  - 
 
That feeling when you're contemplating whether to open a bug report about the catalan translation of driconf causing graphical corruption and bad performance when vsync is enabled.

Relevant image: My mouse pointer with vsync and d5e5367e8992c2e5322d35fba8d86c33a0db6825, but not with d5e5367e8992c2e5322d35fba8d86c33a0db6825 reverted.
1
Add a comment...
Basic Information
Gender
Male
Links
Links