Technology

Raspberry Pi4 on xrdp has screen tearing or distortion

January 10, 2024 · 2 min read

I use my Raspberry Pi4 as a home media server with Plex using Ubuntu Desktop. I use a large flash drive for content that needs me to login every time the machine reboots. I started running into a consistent issue where every login would be met with distortion that looked something like:

xrdp distortion on Raspberry Pi4

I had a difficult time searching for just what this could be and took a few different approaches that worked with mixed results:

  1. Installed a different window manager like xfce4 or kde-plasma

    1. This worked for a minute until it stopped. I have no clue what magic I did at first but I oddly prefer Gnome now.
  2. Created a new user.

    1. I'm not using the default user to begin with but my user jeremy was the only one on the system.
    2. This worked perfectly but it meant setting quite a bit up under the second user.
    3. I absolutely do not understand what in a new user is different to make this one option work consistently.
    4. See https://www.reddit.com/r/raspberry_pi/comments/qw1cdw/comment/huqutq1/?utm_source=share&utm_medium=ios_app&utm_name=iossmf&context=3
    5. See https://www.reddit.com/r/raspberry_pi/comments/176cz2u/raspberry_bookworm_xrdp_gpu_acceleration_issue/
  3. The approaches outlined in https://devicetests.com/fixing-xrdp-black-screen-issue-ubuntu including the installation script.

    1. I made some of these tweaks before as I had the blackscreen problem and I bit the bullet to reinstall xrdp on a whim.
    2. The updated installation script can be found at https://www.c-nergy.be/products.html.
    3. This did nothing and now I'm greeted with self-sign cert warnings every time I connect.

The solution I ended up going with was outlined in https://forums.raspberrypi.com/viewtopic.php?t=358088 as it works flawlessly for my current user, just as it was before whatever recent update broke it.

sudo nano /etc/X11/xrdp/xorg.conf

Find the line Option DRMDevice line and change it to

Option "DRMDevice" ""

reboot raspberry pi

This is one of the reasons I am not a fan of Linux on the desktop, even in 2024 nor do I think it passes the "grandma test." It was damn near impossible to search for this reliably and took me multiple days of searching over a few weeks. Grandma may have that kinda time because she's retired but I'm not, I need the shit to just work(tm). The Linux desktop experience has come a really long way from when I started working with it though.

Windows 10 Mobile ~14295 downgrade

April 17, 2016 · 1 min read

In the event this causes grief in the future I wanted to point out the steps to downgrade Windows 10 Mobile build 14295 back to 8.1. The Windows Device Recovery Tool fails to detect the phone without the steps outlined in BrunoTrivellato's response on page 2.

To make this easier, I thought I would repurpose the steps as I can't seem to find an independent or direct link:

  1. Unplug the phone from the PC.
  2. Click on "My device was not detected".
  3. Select your model and you will enter the "Searching Screen".
  4. Reboot your phone (pressing volume down + home button for some seconds until it vibrates) and immediately plug it back in the PC.

    1. If you take too long to plug it in the PC you will have to reboot it again (the Recovery Tool will show a message to you).
  5. The tool will recognize your model, but not the OS or Firmware.
  6. Click in "Download Software" and wait the process to complete.
  7. When finished, click next and check your Battery as the screen says
  8. The next screen will try to install the software BUT IT WILL FAIL, don't worry it is normal. Wait (3-4 minutes) until it fails and click Finish. Error
  9. Repeat steps 1-5.
  10. Now you will see that the screen will not show "Download" but "Install", click it. Device Information
  11. You will see the installation progress both in the Tool and in your Phone. Wait until it finishes (2-3 minutes). Software Installation

Newness

January 12, 2016 · 2 min read

I said in my previous post that a lot can happen in 2 years.

In that time span I've:

  • Moved to using a MacBook and OSX.

    • OSX being very BSD-like makes it an prime target for web development. It isn't the second class citizen Windows is in the Ruby or Node.js communities.
  • Transitioned away from .NET and don't really miss it. I do randomly play around with .NET core when possible but I haven't actually built anything with it.

    • This was honestly very huge at the time but I still feel I made the right decision. Though Windows 10 is the platform Windows 8 should have been and likely would've kept me on board.
  • Transitioned to PHP and web technologies full bore. I'm no fan of the PHP language but in the era of Visual Studio 2012, a dynamic language that only required refreshing my browser was much faster than waiting on the compile cycle.
  • Drank the vagrant koolaid via PuPHPet.

    • Recreating production hardware isn't too difficult with my ancient DevOps experience.
    • Waiting on the painful commit/push/wait for deployment/refresh cycle to see a change was a huge productivity destroyer.
    • Even developing locally when production PHP versions aren't consistent can be a nightmare. Something like rvm in Ruby comes close but it isn't perfect.
  • Immediately took to PHPStorm as my IDE of choice. JetBrains have done an amazing job and if you've used ReSharper you've only had a taste. I'm no fan of Java but I'll make a concession for tools this good.
  • Wrote a very crude front-end only CMS. When working in only HTML, CSS, and Javascript you really see the separation of client and server very clearly.
  • I jumped in the deep end with tools like gulp, bower and yeoman.

    • This has fueled my desire to be a lot more fluent in Node.js.
    • Frontend development becomes insanely fun because a lot of the tedium melts away if you do it right.
    • This gulp template was extended from this blog post and it's subsequent repository to streamline working on the custom CMS.
    • This yeoman gulp generator looks a little more promising as it seems to serve a similar purpose but feels like less work.
  • I have a Microsoft Lumia 640 and the Windows 10 Mobile OS is one of the best mobile experiences I've used to date. I know I'm biased but it has shaped up really well.
  • My personal laptop is running Windows 10 as well so I haven't abandoned the Windows ecosystem by a long shot, I've just become more of a consumer rather than a developer.

That's really only scratching the surface. It would've been helpful to have blog posts as I moved along but as with most things, life got in the way.

My main goal for the early part of 2016 is to revamp this site and make it the playground I was looking for in 2013. Octopress is really nice but if I upgrade to v3 it's not much more work to migrating away to something like Hexo, Metalsmith, or DocPad.

Migrating from Windows Mobile 6.1 to Windows Phone 7

January 26, 2011 · 2 min read

I figured I'd try to pick an SEO-rific title to hopefully convey the steps I went through to migrate data from a WM6.1 to WP7.

My Prerequisites: (yours may vary) Outlook and Outlook Connector, OneNote 2007 optional. Thunderbird also works great or so I've been told.

This post assumes everyone has already setup the activesync between their computer and the wm6.x device and the data they want is synchronizing to Outlook. Alternatively I also had the Windows Live app on the phone which allowed for direct synchronization to Hotmail but at the time I didn't want to clutter it up with all my IM email addresses. Skipping Outlook or Thunderbird would be the easiest approach obviously but I found Outlook to be a nice data silo and I could've chose to sync my limited phone number data to the lesser used cloud service.

You have two methods of import, People settings and Email. For the most part the consensus seemed to be to use Settings -> Email & Accounts and People as a last resort. It seemed that some people were having sync issues with Gmail that would only be cleared this way.

You are only going to be able to import Emails, Contact, and Calendar data in comparison to Notes, Tasks, and Docs but you don't really need them.

I basically wrote a bunch of bs to say, hey if you use your client and connect to a web-based email service like Hotmail, Gmail, or Yahoo then you pretty much just push buttons and walk away. My only nag with the process is you can't really say "Don't sync calendar items" until after its set. I rarely care because it does a good job of removing those extra items from view completely but sometimes I don't want to have to remember to do it.

OneNote was a different beast altogether and seemingly a gentle push towards Office 2010 Trial for a smooth upgrade experience. My current method is copying the raw data from OneNote 2007 into the web app version and reapplying formatting. It's slow and cumbersome but at least I can properly categorize what was formerly a mess of notes. I'm still not used to the on screen keyboard yet but that's learned behavior anyway.

(This post was scheduled)

Using Windows Phone 7

January 25, 2011 · 2 min read

I figured I'd pull a me too post and give some first impressions using the HD7 and the OS coming from Windows Mobile 6.1

  • Email

    • There is no straight migration process from the Outlook/ActiveSync based model to "the cloudz" but that's a fairly simple process
    • Accounts are separate which isn't so much of a problem for me. I think having it as a choice would be cool though
    • You can't sync drafts or your outbox. This makes sense that the mobile should be "separate" but it syncs with Windows Live Mail. I may want to start a message on my phone and finish on my laptop or vice versa
    • Setting up multiple folders to sync at once would've been a nice option
    • Alternatively that means things like the Gmail tasks are absent too. I prefer OneNote mobile but I do have some Tasks that would be in limbo otherwise.
    • Setting an email flag exists in my company Exchange -> POP account but not Hotmail? Even Google mail has flagged emails
  • General

    • Cursor character selection is horrible. I wouldn't think it'd be easy to determine flick from holding your finger but it seems to follow your finger in a trail. iOS has it beat because the magnifying glass nature allows a person to keep their finger on the line in question but still be able to view what is under their finger. If this is patented someone needs to get slapped.
    • Pimping the OneNote 2010 crack sucks ass. This has been the biggest migration pain and one thing I wish I had used something like Evernote for. So far my solution to date has been to use the Web App version and manually copy the data from OneNote 2007 on my desktop. I get to reapply formatting that way. The alternative is OneNote 2010 Trial and a big no thanks on that option.
    • IE works great despite the bs I've been giving it in my head
    • I would've loved a gyroscope and compass. Maybe Windows Phone 8?
    • No MyPhone sync/migration was unfortunate

It doesn't look like there are many links with some migration steps so perhaps I can get to that in a bit. I also wanted to discuss some of my wishlist. I realize this is 1.0 software but I am also very much in love with the OS. It's a Zune Phone on steroids and all the problems I have don't compare to the awesomeness of using it. It could also just be the hardware but my old phone wasn't terrible (Verizon VX6800, another HTC)