Skip to main content


Showing posts from June, 2017

Quick Re-Set for Desktop using xrandr

All too often when installing a game, a problem occurs that halts the game and does not restore my desktop to the proper size.

To look at what I started with and what I wound up with is simple.

$ xrandr
Screen 0: minimum 8 x 8, current 5120 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02*+  75.02  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    72.81    59.94  
HDMI-0 connected primary 2560x1080+1280+0 (normal left inverted right x axis y axis) 798mm x 334mm
   2560x1080     60.00*+
   1920x1080     60.00    59.94    50.00    29.97    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576    …

PS3 Six-Axis Controller with Qjoypad and Mageia6

If you spend a lot of time playing console games, you quickly become dexterous using those gamepads. While inferior in many respects to nimble mouse and keyboard work for some games, there is no doubt that it would be nice to use the game pad anyway.

I have been a mouse and keyboard PC game player ever since my Doom days way back in the 90s. Around 2007, I was introduced to the Sony PS3 and found it more convenient to play games on the console. Lately, I have been resurrecting all my old games which, of course, work well with a keyboard and mouse, but I have enjoyed using the controller. To me, the controller created a more immersive experience. Being able to do that, as always, takes several steps.

First I needed to have my Mageia6 OS receive information from the PS3 controller. By default, modern Linux use the evdev driver and will auto-magically detect the game controller. That can also be done with xboxdrv, but Mageia does not provide that. RedHat does provide an RPM file which w…

Building RPMs for Mageia - x2x

Occasionally, you may need to install something that is not included with Mageia. For instance, the x2x applications used to be included with Mageia, but has been dropped in Mageia 5. There are other packages, perhaps Ubuntu packages that I might want to use on my system. Or it's possible no package exists,  just a tarball.

Why would you want to build a package from source if the binary is already available? 

Let's begin with the Mageia Packagers RPM Tutorial as a reference.

Create Your Build Environment

It's always a good practice to build packages as a normal user, not as root. Still, it's handy to have sudo enabled for certain operations.

Create you build environment.

$ mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp}

Using your favorite editor, create the .rpmmacros file to build Mageia packages.

# Only set %_topdir and %_tmppath if you want to ovveride the the default ~/rpmbuild # and ~/rpmbuild/tmp #%_topdir  %(echo $HOME)/rpm #%_tmppath …