tag:blogger.com,1999:blog-89163611180714755252024-02-21T01:28:09.234+01:00Daniël's Linux BlogDaniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-8916361118071475525.post-60844703764250659542017-07-03T21:36:00.001+02:002017-07-03T21:36:11.167+02:00GPD Pocker: Touchscreen rotation with waylandThe GPD pocket has a "Goodix Capacitive TouchScreen", which just like the display is rotated by default. The reddit thread suggests to fix this with xinput, which can be made permanent by adding a xorg config file. However this doesn't work if you are using Wayland instead of Xorg.<br />
<br />
To fix the touchscreen orientation in wayland:<br />
Save this to <span style="font-family: "Courier New",Courier,monospace;">/etc/udev/rules.d/99-goodix-touch.rules</span>:<br />
<span style="font-family: "Courier New",Courier,monospace;">ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="Goodix Capacitive TouchScreen", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"</span><br />
<br />
For me reloading udev rules and triggering udev didn't activate this. But after restarting it did work.Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com0tag:blogger.com,1999:blog-8916361118071475525.post-86167421339394058602017-06-27T22:44:00.002+02:002017-07-03T21:42:44.951+02:00Bluetooth on the GPD Pocked with LinuxI finally got bluetooth working on my GPD Pocket.<br />
<br />
This is with Fedora 26 and the rawhide kernel, but it probably works with many other kernels.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">/sys/kernel/debug/usb/devices</span> tells me the bt chip is a Broadcom Corp BCM2045A0<br />
<br />
I thought this would need special firmware etc, but that's not the case or the firmware is already available on Fedora.<br />
<br />
The issue here is the weird USB id: 0000:0000<br />
<br />
To get it working:<br />
<span style="font-family: "courier new" , "courier" , monospace;"># modprobe btusb</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"># echo "0000 0000" > /sys/bus/usb/drivers/btusb/new_id</span><br />
<br />
<span style="font-family: inherit;"><span style="font-family: "Courier New",Courier,monospace;">To make this permanent (On Fedora 26):</span></span><br />
<span style="font-family: inherit;"><span style="font-family: "Courier New",Courier,monospace;">Save this to <span style="font-family: "Courier New",Courier,monospace;">/etc/rc.d/rc.local</span>:</span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">#!/bin/bash<br />modprobe btusb<br />echo "0000 0000" > /sys/bus/usb/drivers/btusb/new_id<br /><br />exit 0<br /> </span><br />
<span style="font-family: inherit;"><span style="font-family: "Courier New",Courier,monospace;">And then:</span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"># chmod 755 /etc/rc.d/rc.local</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"># systemctl enable rc-local </span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> </span>Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com0tag:blogger.com,1999:blog-8916361118071475525.post-79389813612935546522017-06-24T17:42:00.002+02:002017-06-24T17:42:29.433+02:00Follow-up on Fedora 26 on the GPD PocketTo follow up on <a href="http://daniel-lnx.blogspot.nl/2017/06/first-days-with-fedora-26-on-gpd-pocket.html">my previous post</a> about the GPD Pocket:<br />
<br />
Turns out that there in fact is a bluetooth controller in the GPD pocket as pointed out to me on Facebook. But I didn't get it to work yet. It probably requires a proprietary firmware. The device shows up as Broadcom Corp BCM2045A0 in the output of <span style="font-family: "Courier New",Courier,monospace;">sudo lspci -v</span>.<br />
<br />
Sound does work with the default 4.11.0 Fedora kernel. But it does not work with the 4.12.0 rawhide kernel.<br />
<br />
I now also got encryption working. The issue was that the grub config had <span style="font-family: "Courier New",Courier,monospace;">rd.luks.uuid=luks-None</span>. I replaced None by the right UUID (got it from <span style="font-family: "Courier New",Courier,monospace;">cryptsetup luksUUID /dev/mmcblk0p3</span>). I also did the same in <span style="font-family: "Courier New",Courier,monospace;">/etc/crypttab</span>. Nonte that after fixing <span style="font-family: "Courier New",Courier,monospace;">/etc/default/grub</span> and <span style="font-family: "Courier New",Courier,monospace;">/etc/crypttab</span> you need to regenerate your initrd and grub config.Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com0tag:blogger.com,1999:blog-8916361118071475525.post-22937567694180878722017-06-22T22:44:00.001+02:002017-06-22T22:44:05.239+02:00First days with Fedora 26 on the GPD Pocket<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvnccvJ8FlyzUjyuarwx9BwcOseLogJsImekQJByhR5sPi2SSPv6p27KyiDmX7Lepxbc1qwrYqxHmyMEKsk8nFw1TnZaRRp6G6Fdfp_L_y-tZsbcIqS5-JSflomxLev1b4VaEh0gdQzVMR/s1600/photo_2017-06-22_20-07-10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="960" data-original-width="1280" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvnccvJ8FlyzUjyuarwx9BwcOseLogJsImekQJByhR5sPi2SSPv6p27KyiDmX7Lepxbc1qwrYqxHmyMEKsk8nFw1TnZaRRp6G6Fdfp_L_y-tZsbcIqS5-JSflomxLev1b4VaEh0gdQzVMR/s400/photo_2017-06-22_20-07-10.jpg" width="400" /></a></div>
<br />
A few days ago I received the 'GPD Pocket' which I ordered from <a href="https://www.indiegogo.com/projects/gpd-pocket-7-0-umpc-laptop-ubuntu-or-win-10-os-laptop--2/">Indiegogo</a>. It was delivered with Windows 10 and the Indiegogo page said that they will create a Ubuntu image for it.<br />
<br />
But Ubuntu is not my distro of choice these days. And the Ubuntu image is also not ready yet. So I decided to install <a href="https://getfedora.org/en/workstation/prerelease/">Fedora 26 beta</a> on it.<br />
<br />
Booting from a USB stick didn't work initially so I bought a micro-HDMI to HDMI converter. This did result in a working combination together with my Dell monitor. However a part of the converter is blocking the USB-C charging port, so you might want to buy a 0.2m converter cable instead so you can still charge your device while the monitor is connected. <br />
<br />
I also tried a USB-C hub with a mini-display port connector, but that
isn't working yet. This is the "Hyper Drive N21C". Note that you have to
put the USB-C power cable in to have it even show up in <span style="font-family: "Courier New",Courier,monospace;">lsusb</span>.<br />
<br />
I disabled "Fastboot" option in the BIOS. Because it is more likely to work without that feature.<br />
<br />
To get in the BIOS hit ESC. To select a non-default boot option hit F7.<br />
<br />
Installation didn't work the first time. It failed to mount the encrypted partition. So I retried w/o disk encryption. I did wipe the whole disk, I didn't want to dual boot. I'm planning on reinstalling with disk encryption after getting most stuff to work. <br />
<br />
To get wifi to work I used a USB wifi dongle with good Linux support.<br />
I also used a powered USB hub to be able to connect enough devices. There is some <a href="http://hansdegoede.livejournal.com/17445.html">info</a> <a href="https://wiki.archlinux.org/index.php/GPD_Win">online</a> about Linux on the 'GPD Win', which has a similar wifi chip. But putting the txt file in <span style="font-family: "Courier New",Courier,monospace;">/lib/firmware/brcm</span> didn't work for me. Maybe I did something wrong or the chip is slightly different.<br />
<br />
The GPD Pocket doesn't have bluetooth, so you have to use a USB keyboard and mouse if you want an external one. It also doens't have a camera, so you also need a USB webcam if you want to do video conferencing etc.<br />
<br />
My GPD Pocket shipped with a US power adapter and a converter which work fine. The battery also seems fine, but there is no battery indicator. I now have to guesstimate the battery time I have left.<br />
<br />
If I boot Linux 4.12 (<a href="https://fedoraproject.org/wiki/RawhideKernelNodebug">RedHat rawhide</a>) with <span style="font-family: "Courier New",Courier,monospace;">i915.modeset=0</span> then the GPD only detects the external display. Without that option it detects both displays (internal and HDMI) but the internal display stays blank, which makes it difficult to login to GNOME as the blank display has the login prompt.<br />
<br />
To get the internal screen to work I added <span style="font-family: "Courier New",Courier,monospace;">video=efifb</span> to the kernel options in <span style="font-family: "Courier New",Courier,monospace;">/etc/default/grub</span> and ran<br />
<span style="font-family: "Courier New",Courier,monospace;"><span class="st">grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg</span></span><br />
<br />
<span class="st">The display stays blank after show boot messages and then switching to GNOME/GDM. But when I press the power button once I then see the familiair login prompt. Screen resolution is great and the touchscreen works.</span><br />
<br />
The speaker(s) and volume keys did work for a bit but then stopped functioning. A cold boot doesn't fix it. The headphone jack also doesn't seem to work.<br />
<span class="st"><br /></span>
<span class="st">Brightness keys work, but brightness doesn't change. I only see the setting change.</span><br />
<br />Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com2tag:blogger.com,1999:blog-8916361118071475525.post-50752216145721234832015-06-07T17:40:00.000+02:002015-06-07T17:40:39.373+02:00On my MacBook Pro Retina 13" with Fedora 22 I received notifications about system errors.<br /><br />This is the error which triggered the alert:<br /><br /><span style="font-family: "Courier New",Courier,monospace;">mce: [Hardware Error]: Machine check events logged</span><br /><br />The common advice on the interwebs was to run mcelog, but that didn't show anything.<br />It turned out that the reason for that is that in Fedora runs it as a daemon and sends the output to syslog.<br /><br />With <span style="font-family: "Courier New",Courier,monospace;">journalctl /usr/sbin/mcelog</span> I could see all the errors.<br /><br />An example event:<br /><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">apr 05 21:41:32 localhost.localdomain mcelog[891]: MCE 1<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: CPU 2 THERMAL EVENT TSC 21059c66c67<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: TIME 1428262844 Sun Apr 5 21:40:44 2015<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: Processor 2 heated above trip temperature. Throttling enabled.<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: Please check your system cooling. Performance will be impacted<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: STATUS 88000bc3 MCGSTATUS 0<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: MCGCAP c07 APICID 1 SOCKETID 0<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: CPUID Vendor Intel Family 6 Model 69<br />apr 05 21:41:32 localhost.localdomain mcelog[891]: Hardware event. This is not a software error.</span></span><br /><br />This happened when all CPU cores were on 100%. Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com1tag:blogger.com,1999:blog-8916361118071475525.post-54937908314554450932013-01-13T19:57:00.000+01:002013-01-13T19:57:28.421+01:00How to fix your locale settings for Mosh<a href="http://mosh.mit.edu/">Mosh</a> is a great tool. It does require a UTF-8 environment.<br />
<br />
The "locale" command will show your local locale settings:<br />
<span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">$ locale<br />LANG=en_US.UTF-8<br />LANGUAGE=en_US:en<br />LC_CTYPE="en_US.UTF-8"<br />LC_NUMERIC="en_US.UTF-8"<br />LC_TIME="en_US.UTF-8"<br />LC_COLLATE="en_US.UTF-8"<br />LC_MONETARY="en_US.UTF-8"<br />LC_MESSAGES="en_US.UTF-8"<br />LC_PAPER="en_US.UTF-8"<br />LC_NAME="en_US.UTF-8"<br />LC_ADDRESS="en_US.UTF-8"<br />LC_TELEPHONE="en_US.UTF-8"<br />LC_MEASUREMENT="en_US.UTF-8"<br />LC_IDENTIFICATION="en_US.UTF-8"<br />LC_ALL=</span></span><br />
<br />
On Debian based systems like Ubuntu the LANG environment variable will be sent in the SSH session. (This is the SendEnv setting in /etc/ssh/ssh_config)<br />
<br />
But for iSSH on the iPhone this won't do. This will pick the environment as defined in /etc/default/locale. To set the locale put the following line in /etc/default/locale and run sudo update-locale.<br />
<span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">LANG="en_US.UTF-8"</span></span><br />
<br />
For further troubleshooting:<br />
1. Check your 'local' environment<br />
2. Check if your SSH sends an environment variable<br />
3. Check the contents of /etc/default/locale on the server<br />
Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com1tag:blogger.com,1999:blog-8916361118071475525.post-87127055307275825262013-01-09T18:33:00.002+01:002013-01-09T18:53:11.544+01:00Solaris 11 as guest on KVMTo install <a href="http://www.oracle.com/technetwork/server-storage/solaris11/overview/index.html">Solaris 11</a> as a guest on KVM the following steps are needed.<br />
<br />
I will use Ubuntu 12.10 (Quantal) with KVM (qemu-kvm package) and Virtal Machine Manager (virt-manager package). Ubuntu uses a 3.5 Linux kernel.<br />
<br />
I will use the sol-11_1-text-x86.iso to install Solaris.<br />
<br />
Create a new VM with:<br />
<span style="font-family: Georgia,"Times New Roman",serif;">OS Type: Solaris</span><br />
<span style="font-family: Georgia,"Times New Roman",serif;">Version: OpenSolaris </span><br />
You will have to click "Show all OS options" before Solaris is available in the list. The list doesn't contain Solaris 11 yet, that's why I chose OpenSolaris.<br />
<br />
After installing you will need to install slim_install to get a graphical environment:<br />
<span style="font-family: "Courier New",Courier,monospace;">pfexec pkg install slim_install</span><br />
<span style="font-family: "Courier New",Courier,monospace;">pfexec svcadm enable gdm</span><br />
<span style="font-family: "Courier New",Courier,monospace;">pfexec init 5</span><br />
<br />
Now you need to remove the Tablet device which is used to keep the pointer of the host and the guest in sync, otherwise your mouse won't work.<br />
<br />
Now you should be able to power-on your machine and use <a href="http://www.gnome.org/">GNOME</a>.<br />
<br />
Have fun with SMF, ZFS and all other Solaris features!<br />
<br />
<br />
<br />
<br />Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com4tag:blogger.com,1999:blog-8916361118071475525.post-29413058039012260352013-01-06T13:39:00.000+01:002013-02-25T08:02:19.129+01:00Raspberry Pi and the ISY USB Wireless Micro AdapterI bought the "ISY USB Wireless Micro Adapter" for my Raspberry Pi's.<br />
It's also called "IWL 2000" and supports the N150 standard. It is equipped with a blue led. It works with and without a powered USB HUB. It has a Belkin USB ID and a Realtek Chipset.<br />
<br />
It doesn't work out of the box with Raspbian 2012-12-16 wheezy release.<br />
<br />
But fortunately it's not hard to get it working:<br />
The 8192cu driver included with raspbian does work, but is not linked with the USB ID of the device. The 8192cu is not the same as the rtl8192cu driver which is included in other releases. I'm using kernel 3.6.11+.<br />
<br />
In the output of "<span style="font-family: "Courier New",Courier,monospace;">lsusb</span>" this is what's show for the device:<br />
<span style="font-family: "Courier New",Courier,monospace;">Bus 001 Device 006: ID 050d:11f2 Belkin Components </span><br />
<br />
After an "sudo update-usbids" this is what's shown in "<span style="font-family: "Courier New",Courier,monospace;">lsusb</span>"<br />
<span style="font-family: "Courier New",Courier,monospace;">Bus 001 Device 004: ID 050d:11f2 Belkin Components ISY Wireless Micro Adapter IWL 2000 [RTL8188CUS]</span><br />
<br />
To load the 8192cu kernel module:<br />
<span style="font-family: "Courier New",Courier,monospace;">echo 8192cu >> /etc/modules</span> # this makes sure the driver gets loaded on startup<br />
<span style="font-family: "Courier New",Courier,monospace;">modprobe 8192cu</span> # this loads the driver now<br />
<br />
To add the USB ID to the driver:<br />
<span style="font-family: "Courier New",Courier,monospace;">echo "050d 11f2" > /sys/bus/usb/drivers/rtl8192cu/new_id</span><br />
<br />
You should add this line to /etc/rc.local to make it persistent.<br />
<br />
Now it should show up with "<span style="font-family: "Courier New",Courier,monospace;">ifconfig</span>" and "<span style="font-family: "Courier New",Courier,monospace;">iwconfig</span>" and you could configure it just like any other wifi interface.<br />
<br />
<br />
<br />
<br />Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com14tag:blogger.com,1999:blog-8916361118071475525.post-43079236101758380662011-11-14T16:28:00.001+01:002011-11-14T16:39:22.280+01:00Connect Omnis Studio to MySQL on UbuntuThe environment is a 32-bit single CPU machine running Ubuntu 10.04.3 LTS. I will be using Omnis Studio 5.1.1.<br />
<br />
The first step is to download and install the software. Nothing special is needed for this step.<br />
<br />
Omnis Studio will crash when libc6-i686 is installed because it's not compatible with tls (thread local storage).<br />
<br />
The second step is to get the MySQL DAM working.<br />
The issue with the DAM is that the SSL symbols in the so file can't be resolved. You can see this by using "ld -M xcomp/dammysql.so > /dev/null"<br />
The fix for this is to modify the omnisI386 script and add the following lines:<br />
<pre>LD_PRELOAD=/lib/libssl.so.0.9.8
export LD_PRELOAD</pre>
<br />
Now the MySQL DAM should work!Daniël van Eedenhttp://www.blogger.com/profile/14757324605223498151noreply@blogger.com0