# Uconsole issues & fixes CM4 -R01- A06 thread

**URL:** <https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561>\
**Category:** uConsole\
**Created:** [July 25, 2023, 3:07pm UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561 "2023-07-25T15:07:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jutleys](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jutleys](https://forum.clockworkpi.com/u/jutleys)\
**Post date:** [July 25, 2023, 3:07pm UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/1 "2023-07-25T15:07:54Z")

</div>

Okay so i have the Uconsole CM4 for a bit now below i have documented all the issues etc it would be great if they can be implemented in the next Pi OS image. This way it will be a more pleasant out the box experience without things breaking too much thanks.

See my Uconsole review here [Clockwork Uconsole CM4 Linux handheld review. - YouTube](https://youtu.be/n_vsPrgZLIE)

1. Command to force Ext Antenna as the Pi OS defaults to internal.

sudo sh -c ‘echo “dtparam=ant2” \>\> /boot/config.txt’

1. apt update & upgrade commands upgraded Wi-Fi & then disappeared after reboot. To fix this in terminal do sudo raspi-config, you can get it restored by \> Advanced Options \> Network Config \> selecting [dhcpcd] instead of [Network Manager] and rebooting the OS.( if you don’t see that option in raspiconfig update the tool by hitting update it will then show.)

2. This is just a PSA: some games rely on SDL2 gamepad detection, which won’t detect the Uconsole pad and buttons by default. To get the gamepad detected, add the following line to the .profile file in your home folder: export

SDL\_GAMECONTROLLERCONFIG=“03000000af1e00002400000010010000,ClockworkPI uConsole,platform:Linux,a:b1,b:b2,x:b0y:b3,back:b8,start:b9,leftx:a0,lefty:a1,”

1. In Pi OS a update notification appeared and if you go ahead with the updates you find after you can’t log back in with your password just stuck at a login screen. This was very annoying and forced me to reimage.  
Update fixed by doing the below.  
On Log in screen press Fn+Ctrl+Alt F3 then type the commands below then reboot.

sudo rm /bin/sh  
sudo ln -s /bin/bash /bin/sh

1. If you want to use retropie see below if you get emulation station screen in wrong screen orientation.  
After a reboot load terminal and type emulationstation to start it again should be all good.

2. Here is some more important info when you pair the uconsole in retropie note the below.  
There will be 2 gamepads detected one is the keyboard which you only need to bind up down left right, the other gamepad you need ABXY SELECT & START use SELECT again for the special button.

---

<div class="post-metadata">

**Author:** ![markatlnk](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@markatlnk](https://forum.clockworkpi.com/u/markatlnk)\
**Post date:** [July 25, 2023, 6:03pm UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/2 "2023-07-25T18:03:15Z")

</div>

The R-01 also has several issues that should be addressed.

1. The power button doesn’t shut it down, you need to hold it until it forces power off.
2. “shutdown -h now” takes over 3 minutes to actually shut down.  
The DevTerm shuts down in just a couple seconds.
3. In non-gui mode, no cursor, “setterm -cursor on” doesn’t do it.
4. No bluetooth, bluetoothctl can’t find any devices.

---

<div class="post-metadata">

**Author:** ![MHam68HC11](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/mham68hc11/32/5046_2.png) [@MHam68HC11](https://forum.clockworkpi.com/u/MHam68HC11)\
**Post date:** [July 25, 2023, 11:02pm UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/3 "2023-07-25T23:02:57Z")

</div>

I wish there was a stronger way to express this in English than a sincere thank you - I keep build notes on all my linux systems especially the DevTerm - it has allowed me to correct mistakes when I install a program that causes conflicts etc Perhaps in a rush to ship the hardware they left a few things for the community to find. I’ve copied your notes into the uConsole build file I’ve started even though I don’t have the unit in my hands yet. M.

---

<div class="post-metadata">

**Author:** ![Asara](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/asara/32/7634_2.png) [@Asara](https://forum.clockworkpi.com/u/Asara)\
**Post date:** [July 27, 2023, 1:37am UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/4 "2023-07-27T01:37:13Z")

</div>

> [@jutleys](#):
>
> SDL\_GAMECONTROLLERCONFIG=“03000000af1e00002400000010010000,ClockworkPI uConsole,platform:Linux,a:b1,b:b2,x:b0y:b3,back:b8,start:b9,leftx:a0,lefty:a1,”

Should probably be:

```auto
SDL_GAMECONTROLLERCONFIG=“03000000af1e00002400000010010000,ClockworkPI uConsole,platform:Linux,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftx:a0,lefty:a1,”

```

The original is missing a comma between `x:b0` and `y:b3`

Even with that though, I am sadly I am unable to get the gamepad buttons (other than the arrow keys) to work.

Neither ABXY nor Start/Select show any response in `xev`. I did however make my own image, so in the chance I missed a package, is there any package I need to install to get those working?  
I installed `xorg-xserver-input-joystick` to no avail.

Currently trying to get it working with TIC-80.

Edit: Poking further and it doesn’t seem to be an issue with packages. The gamepad keys all work when using uxnemu but not TIC-80.

---

<div class="post-metadata">

**Author:** ![Eric\_Nelson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/eric_nelson/32/7441_2.png) [@Eric\_Nelson](https://forum.clockworkpi.com/u/Eric_Nelson)\
**Post date:** [December 14, 2023, 12:49am UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/5 "2023-12-14T00:49:41Z")

</div>

> Currently trying to get it working with TIC-80.

> Edit: Poking further and it doesn’t seem to be an issue with packages. The gamepad keys all work when using uxnemu but not TIC-80.

Any luck with this? I can’t seem to get gamepad controls working in TIC-80. although they work in PICO-8 just fine (and Cave Story, etc).

---

<div class="post-metadata">

**Author:** ![Eric\_Nelson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/eric_nelson/32/7441_2.png) [@Eric\_Nelson](https://forum.clockworkpi.com/u/Eric_Nelson)\
**Post date:** [December 14, 2023, 4:25am UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/6 "2023-12-14T04:25:48Z")

</div>

Nevermind! Found the solution after digging around in this thread. Works like a charm!

> [@Fixing detected gamepad in some games](https://forum.clockworkpi.com/t/fixing-detected-gamepad-in-some-games/7729):
>
> This is just a PSA: some games rely on SDL2 gamepad detection, which won’t detect the DevTerm pad and buttons by default. To get the gamepad detected, add the following line to the .profile file in your home folder: export SDL\_GAMECONTROLLERCONFIG="03000000af1e00002400000010010000,ClockworkPI DevTerm,platform:Linux,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftx:a0,lefty:a1," And log out/log back in. This got the gamepad working in [RigelEngine](https://github.com/lethal-guitar/RigelEngine) for me.

---

<div class="post-metadata">

**Author:** ![Eraph](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/eraph/32/9128_2.png) [@Eraph](https://forum.clockworkpi.com/u/Eraph)\
**Post date:** [March 12, 2024, 4:46am UTC](https://forum.clockworkpi.com/t/uconsole-issues-fixes-cm4-r01-a06-thread/10561/7 "2024-03-12T04:46:46Z")

</div>

I couldn’t get the game controller buttons to work so dug a little deeper. I wanted to know how the `SDL_GAMECONTROLLERCONFIG` variable was composed and found that the first part (`03000...`) is the ID of the controller. I thought maybe it had changed in recent batches, and I found [this](https://github.com/AntiMicroX/antimicrox) tool to check the IDs.

Skip to the end if you want the configuration that worked for me, or if you want to check your controller’s ID, install with:

```bash
sudo apt install antimicro

```

Run it from the GUI and click on `Controller Mapping` at the bottom left. Press any gamepad button here to show the ID in the box at the bottom left, or perform the full mapping if you want to be able to copy and paste how it’s set up here.

> If it doesn’t show any additional numbers at the end of the ID, click _Save_ and then click _Controller Mapping_ again and see if it’s been updated. I don’t know, SDL is weird.

In the end, this is the line that worked for me, added to the end of `.profile` in my home directory.

```bash
export SDL_GAMECONTROLLERCONFIG="03000000af1e00002400000010010000785536,ClockworkPI uConsole,platform:Linux,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftx:a0,lefty:a1,"

```

Save, log out, and log back in again.

I hope this helps someone!

– Edit  
Bonus round for XFCE users! The `.profile` file [isn’t loaded by default](https://askubuntu.com/questions/1127990/profile-not-working-on-xfce4), so create a file in your home directory with the name `.xsessionrc` and add the following:

```bash
. /etc/profile
. ~/.profile

```
