Nanonote

...because open source matters

  • Schrift vergrößern
  • Standard Schriftgröße
  • Schriftgröße verkleinern
Nanonote

New GMU Icon

Drucken

As promised, here is a quick new icon for GMU, Nanonotes default audio player. The abstract "G" stayed the same, but due to the light background it's way more readable now.

The old icon:

gmu_orig

The new one:

gmu_new

The new one selected:

gmu_selected

You can grab the icon here and the Inkscape source here.

Dirty* installation instructions:

  1. save gmu.png to /tmp
  2. scp /tmp/gmu.png root@<nanonote>:/usr/share/gmenu2x/skins/Default/icons/
*) I still could not figure out why Gmenu2x crashes every time I try to use a custom theme folder, so until that's sorted out  I'll keep overwriting "Default".
 

Q and P for section switching

Drucken

The current Nanonote firmware uses the Q and P keys for section switching in Gmenu2x. If you stay with that keymap instead of changing it, then you can download these two images and replace the original ones labeled "L" and "R" with them.

A mockup of the result:

qpmockup

Instructions:

  1. save the images to /tmp
  2. scp /tmp/l_disabled.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/imgs/l_disabled.png
  3. scp /tmp/r_disabled.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/imgs/r_disabled.png
That's it. Beware though that I haven't tested the images on a real device, so better save the original ones before replacing them.
 

Tuning Ben's default Gmenu2x theme

Drucken

While technically working quite nice, the current Gmenu2x theme still needs a bit more love. It has been created for the 840x480px screen of the Pandora handheld. One of the results: The original wallpaper looks like this:

pandora-nova-desat

But only the upper left corner gets displayed on the QVGA screen of the Nanonote:

orig

I liked the look of the original wallpaper, so I tried to create a NanoNote-branded rip-off that would fit in 320x240px. A few minutes of Inkscape-dabbling later:

wallpaper

I could not find the font type "NanoNote" was written in, so I just redrew it based on this image from sharism.cc. Same thing with the Ben logo.

The second obvious thing was removing the "L" and "R" images in the upper corners of the tab bar because they made no sense after changing the keys for section switching. I replaced them with this fully transparent file of the same size.

The result looks a bit nicer:

screenshot

To replicate:

  1. save wallpaper and transparent png to /tmp
  2. scp /tmp/wallpaper.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/wallpapers/wallpaper.png
  3. scp /tmp/l_disabled.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/imgs/l_disabled.png
  4. scp /tmp/l_disabled.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/imgs/r_disabled.png
  5. scp /tmp/l_disabled.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/imgs/l_enabled.png
  6. scp /tmp/l_disabled.png root@<nanonote_ip_address>:/usr/share/gmenu2x/skins/Default/imgs/r_enabled.png
  7. change the active wallpaper under settings -> Wallpaper in Gmenu2x directly.
That's it. Next on the list is a more visible GMU icon Smile
 

A new keymap for gmenu2x

Drucken

Gmenu2x, the current "window manager" of the Ben Nanonote, has its roots in gamepad-like devices. As the last time I used one of these was on an NES about 15 or 20 years ago, the controls were a bit confusing for me.

After searching around I found the relevant config file, it's /usr/share/gmenu2x/input.conf. The keycodes used in that file can be found in the qi-hardware wiki.

This is my new keymap:

# a = [h]elp screen
# keycode 104 = h
a=keyboard,104

# b = start application
# keycode 13 = enter
b=keyboard,13

# x = cancel
# keycode 27 = escape
x=keyboard,27

# y = show gmenu2x [r]eadme
# keycode 114 = r
y=keyboard,114

# l = select section to the left
# keycode 92 = \
l=keyboard,92

# r = select section to the right
# keycode 9 = tab
r=keyboard,9

# select = context menu, [e]dit entry
# keycode 101 = c
select=keyboard,101

# start = gmenu2x [s]ettings
# keycode 115 = s
start=keyboard,115

up=keyboard,273
down=keyboard,274
left=keyboard,276
right=keyboard,275

The changes in human-readable form:

  • Enter starts the application
  • Tab switches between sections
  • e allows to edit the selected entry
  • h opens the help screen
  • esc cancels
 

Automatically restoring alsa settings

Drucken

When the sound modules are loaded, sound ouput is muted by default. While the current image (from June 2010) supports issuing the commands alsactl store (for saving the current settings) and alsactl restore (for loading them again), alsactl restore isn't called automatically after loading the modules.

The file /etc/rc.local comes to the rescue: Putting alsactl restore in there automatically restores the last saved sound settings on every boot. As that script is usually the last one called by init, the sound modules are already louded at that time.