Archive

Archives pour la catégorie ‘Constructeur’

AppleKeyboard on Ubuntu

07/12/2015 Comments off

Source: ubuntu.com

Preface

Since Ubuntu 8.04 (Hardy Heron) the USB aluminum Apple Keyboard has not worked correctly. A change was added to the Ubuntu Linux kernel to make Apple MacBook keyboards gain additional functionality to their limited laptop style keyboard (Ubuntu bug #162083). Unfortunately this code change has some side effects for owners of the full size USB aluminum Apple Keyboard:

  • Function keys have media functions as default (as the printing on the keycaps indicates). To access the regular F-key functionality, the « fn » key must be pressed and held (except for F5 and F6, which are inverted in this respect). (Ubuntu bug #201711)
  • On international (non-US) keyboards, two keys are swapped with respect to the printing on the keycaps. (Ubuntu bug #214786)

Both issues may be straightened out with two configurable module parameters (http://bugzilla.kernel.org/show_bug.cgi?id=10818), as shown below.

To make the keyboard behave more like a standard PC keyboard (but against the orinal printing on the keycaps), additional steps are necessary:

  • Map SysRQ, Scoll Lock, and Pause keys to F13-F15: This still requires a patch that adds a configurable option to the kernel module, or a « keyfuzz » workaround (#262408).
  • Swap the cmd and super keys: (hid_apple patch) or keyfuzz workaround.

A tar archive containing all workarounds can be found at (un-apple-keyboard)

If you would like to have a better integration, please help by enhancing the patches to implement proper module parameters, and submitting them to the upstream kernel developers. See also: Trouble With Apple Keyboard On Ubuntu

To find the the keycode of any key that you want to modify, simply run in a terminal

xev | sed -n ‘s/^.*keycode *\([0-9]\+\).*$/keycode \1 = /p’

Then you can find the List of Keysyms Recognised by Xmodmap:

http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap

http://wiki.linuxquestions.org/wiki/ConfiguRing_keyBoards

Default Behavior

This section describe the default behavior of every Apple keyboard.

Apple slim aluminum keyboard (0220)

wired_1_20070813a.jpg

  • Characters that are not printed on the keycaps (~,{},[],…) can still be generated as on a standard PC keyboard.
  • Even if the @ is printed on another keycap as on the standard PC layout, that key will only behave like the standard PC layout key and not generate the @. Use your localized standard PC layout key (combination) to generate the @.
  • ‘fn’+’F-Key’ -> triggers the regular F-Key
  • ‘fn’+’Enter’ -> Insert
  • ‘fn’+’Backspace’ -> Delete
  • ‘fn’+’Up’ -> PageUp
  • ‘fn’+’Down’ -> PageDown
  • ‘fn’+’Left’ -> Home
  • ‘fn’+’Right’ -> End
  • ‘Clear’ behaves like ‘NumLock‘ (Numlock may also be switched by pressing fn-F6 twice)

(See #262408 as there is patch submit to map F13, F14 and F15 to the otherwise missing PrintScreen, ScrollLock and Pause keys.)

Lire la suite…

Raspberry Pi Camera Streaming to VLC Player

09/02/2014 Comments off

Recently I discovered the pi’s in my quest for making a device with recognition software to locate items on the ground while being attached to a multi-rotor helicopter.

The Raspberry Pi is perfect. only needing 5v to run means its great for running off batteries etc. anyway to the streaming part.

To stream to VLC from your Raspberry Pi Camera to your computer over a network you need to install VLC Player on both the Raspberry Pi & PC/ Mac what ever.

for the PC/ MAC its simple just go to the VLC downloads page – http://www.videolan.org/ as for the Pi its more complicated.
Lire la suite…

Freebox Révolution & VPN

28/01/2014 Comments off

source: médiasoft technologies

2011 a vu l’arrivée de la Freebox Révolution.

Révolution pour les uns, mais régression pour certains.

Explications : bon nombre d’utilisateurs plus ou moins aguerris ou professionnels utilisaient la Freebox V5 en mode bridge en y raccordant un vrai routeur de façon à disposer de certaines fonctionnalités évoluées (Firewall, VPN, redirections de ports, etc.).

Or, sur la nouvelle Freebox (v6), il est devenu impossible de passer en mode bridge, celle-ci étant prévue pour fonctionner en mode routeur. De plus, comme chacun le sait (ou pas), les FAI n’aiment pas les modems standard, leur box est leur cheval de bataille, pour ne pas dire ouvertement leur cheval de Troie pilotable à souhait au niveau d’une QOS qui ne profite pas nécessairement au consommateur.

Certains objecteront, non sans raison, qu’un professionnel ferait mieux de souscrire une abonnement chez un fournisseur adapté, Nerim par exemple (c’est ce que je fais du reste), mais il ne faut pas perdre de vue que bon nombre de professionnels exercent à domicile et sont en droit d’attendre une offre qui satisfasse aussi bien leur besoins professionnels que leurs loisirs. Lire la suite…

Que faire, si la mise à jour de Mac Ports échoue?

28/01/2014 Comments off

Source: korben.info

Si vous êtes sous Mac et que vous tentez de faire un

sudo port selfupdate

pour mettre à jour MacPorts, il est possible que vous obteniez le message suivant :

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

Pas de panique !

Pour arranger le souci, il suffit que vous installiez Xcode et les Command Line Tools. Pour cela, rendez-vous dans l’App Store. Installez Xcode, puis lancez-le.

Ensuite, allez dans le menu XCode -> Preferences et dans l’onglet « Downloads », installez les « Command Line Tools ».

xcodeRelancez ensuite la commande

sudo port selfupdate

Et cette fois, Mac Ports devrait se mettre à jour correctement. Ensuite, pour mettre à jour les paquets dont la date limite de fraicheur a expiré, tapez la commande :

sudo port upgrade outdated

Programmer l’heure d’exécution de Time Machine

28/01/2014 Comments off

Source: korben.info

u_04030644

Si vous êtes utilisateur d’OSX, peut-être faites-vous vos sauvegardes avec Time Machine sur un NAS ou une Time Capsule…

Et ça vous fait ch*er car cette sauvegarde se lance une fois par heure, faisant ramer votre ordinateur déjà un peu à bout de souffle… C’est quand même un peu sauvage un backup incrémental toutes les heures, surtout quand on passe sa vie sur The Pirate Bay 🙂

Alors, comment faire pour programmer cette sauvegarde une fois par jour (genre la nuit) ou une fois par semaine, voire une fois par mois si vraiment les sauvegarde vous n’en avez rien à faire (et ça c’est mal !) ?

La solution s’appelle Time Machine Editor. Il s’agit d’un petit soft pour OSX qui permet tout simplement de programmer le moment exact où vous souhaitez lancer la sauvegarde TimeMachine.

cap-2012-05-24-a-18.32.54

Attention, ce soft nécessite pour fonctionner efficacement, que vous désactiviez la TimeMachine. (oui, ça peut paraitre bizarre, mais Time Machine Editor gère son truc de son côté.)

cap-2012-05-24-a-18.44.08

Time Machine Editor est téléchargeable ici.

Edit: l’ami Daniel me recommande aussi TimeMachineScheduler qui fait sensiblement la même chose. Ce dernier ne nécessite pas de devoir désactiver la Time Machine et s’intègre dans les préférences système de l’OS.