Keyboard broken + HDMI

12 respostas [Última entrada]
joaovlg
Desconectado
Joined: 05/16/2014

Hi guys, my keyboard is broken and i can't access my hdmi tv without specials keys. Is there a combination with a usb keyboard? I have one and is very simple, what can i do?

lembas
Desconectado
Joined: 05/13/2010

What kind of special keys?

joaovlg
Desconectado
Joined: 05/16/2014

On my laptop's keyboard has a combination fn + f8. But don't is there the key "fn" at my usb keyboard. Is there a combination? For exemple ctrl + alt + del?

When i plug the cable on TV shows the same image of laptop. The TV is mirrored at notebook on resolution 1024 x 768. I wish only see the tv-monitor.

lembas
Desconectado
Joined: 05/13/2010

I don't know such combo but try this. First install xdotool and then run

xdotool key XF86Display

(Letter case is meaningful, like usually.) You might need to do that a few times perhaps.

You can find more such funny stuff at http://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h

Now, if this works, you can then of course bind it to a key combo. :)

joaovlg
Desconectado
Joined: 05/16/2014

Well, i'm look for something more simple. For example, i open the keyboard (shortcuts option) and i want add some shortcut for change from notebook for TV.

I want do something very simple, but without this keyboard key is very hard. It is possible do it in some option inside of trisquel?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

If you have a command that does the job, you only need to write it in an executable file and you got your shortcut.

joaovlg
Desconectado
Joined: 05/16/2014

But how can i do that? Someone can help me? I have a new problem too. I changed some shortcuts and i want reset them to default, how can i do that?

I love free software but i think that simple problems has a hard solution.

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Have you tried lembas' solution? Has it worked?

joaovlg
Desconectado
Joined: 05/16/2014

I guess my solution is here. look -

#define XF86XK_Next_VMode 0x1008FE22 /* next video mode available */
#define XF86XK_Prev_VMode 0x1008FE23 /* prev. video mode available */

But i don't know how can i use this information. I try paste on terminal but nothing happens. I'm not sure how can i use this aplication. Anyway is there some software than changes my screen output?

The lembas' solution seems to work but to me is very complex. I didn't know that was so hard change the screen.

: /

And i solved my problem with shortcuts (the second problem) rsrs.

lembas
Desconectado
Joined: 05/13/2010

:) So the solution works. Goto system settings > keyboard or something like that where you get to define shortcuts. Then define a custom shortcut. Hit the plus. Give it a name and input the command. Then the name you gave it will appear in the list. Click the word disabled after it and hit the key combo you want.

step1.png step2.png
Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Alternatively, you can write the command in a file (for instance on your desktop) that you render executable (you can do that from the "Permissions" tab of the "Properties" window you get from the menu that pops-up when you right-click on the file).

A double-click on the file and the command runs.

lembas
Desconectado
Joined: 05/13/2010

Usually this is what needs to be done if there are more than one command you wish to bind.

Legimet
Desconectado
Joined: 12/10/2013

The #define's are C preprocessor macros and will do nothing in the terminal because they will be interpreted as comments.