test if modeswitch works
$ sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M "55534243123456780000000000000a11062000000000000100000000000000"
if yes than usually you would do this (but for me it did not work)
#edit config file
/etc/usb_modeswitch.conf
test if modeswitch works
$ sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M "55534243123456780000000000000a11062000000000000100000000000000"
if yes than usually you would do this (but for me it did not work)
#edit config file
/etc/usb_modeswitch.conf
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
var germanFormatters = d3.locale({ | |
"decimal": ",", | |
"thousands": ".", | |
"grouping": [3], | |
"currency": ["€", ""], | |
"dateTime": "%a %b %e %X %Y", | |
"date": "%d.%m.%Y", | |
"time": "%H:%M:%S", | |
"periods": ["AM", "PM"], | |
"days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], |
Inspired from https://blog.petrzemek.net/2014/03/23/restarting-a-python-script-within-itself/
def restart():
import sys
print("argv was",sys.argv)
print("sys.executable was", sys.executable)
print("restart now")
import os
A readonly raspberry pi with /tmp
mounted in fstab as mode=1777
had mode 0755
after boot. This caused
several programs such as dhcpcd not to work correctly.
The same issue is also desribed in http://superuser.com/questions/1103101/how-can-i-mount-a-tmpfs-to-tmp-via-fstab-writable-to-anyone and http://unix.stackexchange.com/questions/289377/fstab-doenst-read-mode-value
Connect serial to a usb port and open it
Connect to Wifi and use ssh to connect over wifi:
ssh [email protected] (password root)
copy into /etc/systemd/system/autossh-ssh.service
[Unit]
Description=Reverse tunnel for ssh
After=network.target
[Service]
User=pi
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -oExitOnForwardFailure=yes -oStrictHostKeyChecking=no -oServerAliveInterval=30 -oServerAliveCountMax=2 -R {{autossh_reverse_remote_port}}:localhost:22 -N {{autossh_remote_host}}
The issue: In Ubuntu 16.04 the laptop screen and also on external screen will get black for several seconds, until it is on again. This black screen flickering happens about once a minute and is really annoying.
Checking dmesg or /var/log/messages, the following error can be found:
[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *error* cpu pipe a fifo underrun
or