Forum

Full Version: Delete source with remote SAPPHIRE ATI 5000023600
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good morning

I'm trying to remove some duplicate video sources in kodi, but I just can't find how to do it.
If I could avoid editing with ssh... Tongue
I suspect that my remote is not properly set up.
I select the source, and then, what key on the remote shall I press, or more precisely what key code will Kodi expect to remove the entry? KEY_C ? or another?

Thanks to this thread I've been able to fix some buttons (volume up volume down and mute) with codes I've found there in the section SAPPHIRE_ATIUSB_5000023600.

My current lirc file.

Code:
root@xbian:/home/xbian# cat /etc/lirc/remotes/x10-atiwonder.conf
# brand: ATI Remote Wonder
# model no. of remote control: 5000023600
# devices being controlled by this remote: ATI USB Receiver
#
# Found on a linpvr.org forum, thanks.

begin remote

#  name  X10-ATIREMOTE
   name  X10-ATIWONDER
  bits           40
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          235966
  toggle_bit      0

  min_repeat      2
  suppress_repeat 4
  toggle_bit_mask 0x80800000


      begin codes
          KEY_A                    0x00000014D5000000
          KEY_B                    0x00000014D6010000
          KEY_POWER                0x00000014D7020000

          KEY_TV                   0x00000014D8030000
          KEY_DVD                  0x00000014D9040000
          KEY_WEB                  0x00000014DA050000
          KEY_MEDIALIB             0x00000014DB060000
          KEY_DRAG                 0x00000014DC070000

          KEY_MB_LEFT              0x000000144D780000
          KEY_MB_RIGHT             0x00000014517C0000
          KEY_MOUSEUP              0x0000001447720000
          KEY_MOUSEDOWN            0x0000001448730000
          KEY_MOUSELEFT            0x0000001445700000
          KEY_MOUSERIGHT           0x0000001446710000
          KEY_MOUSELEFTUP          0x0000001449740000
          KEY_MOUSERIGHTUP         0x000000144A750000
          KEY_MOUSELEFTDOWN        0x000000144C770000
          KEY_MOUSERIGHTDOWN       0x000000144B760000
#         KEY_VOLUMEUP             0x00000014DD080000
#         KEY_VOLUMEDOWN           0x00000014DE090000
          KEY_VOLUMEDOWN           0x00000014DE090000
          KEY_VOLUMEUP             0x00000014DD080000
          KEY_MUTE                 0x00000014DF0A0000
#         KEY_MUTE                 0x00000014D5000000
          KEY_CHANNELUP            0x00000014E00B0000
          KEY_CHANNELDOWN          0x00000014E10C0000

          KEY_1                    0x00000014E20D0000
          KEY_2                    0x00000014E30E0000
          KEY_3                    0x00000014E40F0000
          KEY_4                    0x00000014E5100000
          KEY_5                    0x00000014E6110000
          KEY_6                    0x00000014E7120000
          KEY_7                    0x00000014E8130000
          KEY_8                    0x00000014E9140000
          KEY_9                    0x00000014EA150000
          KEY_0                    0x00000014EC170000
          KEY_DVDMENU              0x00000014EB160000
          KEY_SETUP                0x00000014ED180000

          KEY_C                    0x00000014EE190000
          KEY_D                    0x00000014F01B0000
          KEY_TVONDEMAND           0x00000014F11C0000
          KEY_FULLSCREEN           0x00000014F5200000
          KEY_UP                   0x00000014EF1A0000
          KEY_DOWN                 0x00000014F7220000
          KEY_LEFT                 0x00000014F21D0000
          KEY_RIGHT                0x00000014F41F0000
          KEY_OK                   0x00000014F31E0000
          KEY_E                    0x00000014F6210000
          KEY_F                    0x00000014F8230000

          KEY_REWIND               0x00000014F9240000
          KEY_PLAY                 0x00000014FA250000
          KEY_FASTFORWARD          0x00000014FB260000
          KEY_RECORD               0x00000014FC270000
          KEY_STOP                 0x00000014FD280000
          KEY_PAUSE                0x00000014FE290000
      end codes

end remote

Thanks. :-)
It should be KEY_C
Thanks

The code for the key is identical in xbian and lirc user configs site.
Well it seems i have to figure out what code is received when I press the "c" key on the remote.

Well I tried to follow the wiki here
Not really working as I expected. ;-)

Code:
root@xbian:/home/xbian# service lirc stop
lirc stop/waiting
root@xbian:/home/xbian# mode2
mode2: could not get file information for /dev/lirc
mode2: default_init(): No such file or directory

root@xbian:/home/xbian# ls /dev/li*
/dev/lirc0  /dev/lircd

root@xbian:/home/xbian# mode2 -d /dev/lirc0
Please use the --raw option to access the device directly instead through
the abstraction layer.

root@xbian:/home/xbian# mode2 -d /dev/lircd
mode2: could not connect to unix socket /dev/lircd
mode2: default_init(): Connection refused

root@xbian:/home/xbian# mode2 -r /dev/lirc0
mode2: too many arguments
Just run command irw
All with the remote: from the main menu I select Videos, then files, then I do highlight the source I want to delete with the arrow keys and I press the "c" key on the remote.
Nothing happens. The source is not removed.

The ouput of irw is
Code:
00000014ee190000 00 KEY_C X10-ATIWONDER
So it is the right key.
That MUST work Exclamation

but

You have to enable "Allow renaming and deletion" in Kodi setting Appearance-File lists section

Just tested, works like a charm
You are right enabling this option allows me to delete files, but it's not what I want to do.
I want to remove some network shares from the screen, not the files on the shares.

I've created a test folder in an smb share.
I've added this source
If I delete it, it deletes the directory with the files on the smb machine, but not the icon. Obviously, if I click on it, it tells me that the share is not available.

Removing an upnp source is also impossible.
Again: This option has to be enabled to remove Video sources, not only files or folders!

I tested this before I wrote previous post.
The option is enabled.
I think I don't use the accurate vocabulary, sorry

Well, adding a source somehow creates a mount point, right?

The "c" key deletes what is inside the mountpoint, and does not unmount, the icon is still present.
I would like to unmount and not delete what is inside it.

You can see below that my test-test is still present, although pressing the "c" key deleted the directory it was pointing to.

Code:
root@xbian:/home/xbian# cat /home/xbian/.kodi/userdata/sources.xml
<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>Enfants</name>
            <path pathversion="1">upnp://0011320a-e51f-0011-1fe5-1fe50a321100/33%24101/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>TwonkyMedia [Films]</name>
            <path pathversion="1">upnp://55076f6e-6b79-1d65-a4eb-00089becfe96/0%243%2433/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Enfants (2)</name>
            <path pathversion="1">upnp://0011320a-e51f-0011-1fe5-1fe50a321100/33/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Films smb</name>
            <path pathversion="1">smb://FILMS/Multimedia/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>test-test</name>
            <path pathversion="1">smb://FILMS/Multimedia/test-test/</path>
            <allowsharing>true</allowsharing>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
        <source>
            <name>TwonkyMedia [Films]</name>
            <path pathversion="1">upnp://55076f6e-6b79-1d65-a4eb-00089becfe96/0%241%2413%2471/</path>
            <allowsharing>true</allowsharing>
        </source>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
        <source>
            <name>SuperRepo.org Virtual Disk</name>
            <path pathversion="1">http://srp.nu/jarvis/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Root filesystem</name>
            <path pathversion="1">/</path>
            <allowsharing>true</allowsharing>
        </source>
    </files>
</sources>
root@xbian:/home/xbian# cat /home/xbian/.kodi/userdata/sources.xml
<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>Enfants</name>
            <path pathversion="1">upnp://0011320a-e51f-0011-1fe5-1fe50a321100/33%24101/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>TwonkyMedia [Films]</name>
            <path pathversion="1">upnp://55076f6e-6b79-1d65-a4eb-00089becfe96/0%243%2433/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Enfants (2)</name>
            <path pathversion="1">upnp://0011320a-e51f-0011-1fe5-1fe50a321100/33/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Films smb</name>
            <path pathversion="1">smb://FILMS/Multimedia/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>test-test</name>
            <path pathversion="1">smb://FILMS/Multimedia/test-test/</path>
            <allowsharing>true</allowsharing>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
        <source>
            <name>TwonkyMedia [Films]</name>
            <path pathversion="1">upnp://55076f6e-6b79-1d65-a4eb-00089becfe96/0%241%2413%2471/</path>
            <allowsharing>true</allowsharing>
        </source>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
        <source>
            <name>SuperRepo.org Virtual Disk</name>
            <path pathversion="1">http://srp.nu/jarvis/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>Root filesystem</name>
            <path pathversion="1">/</path>
            <allowsharing>true</allowsharing>
        </source>
    </files>
</sources>
Ok, you're right. This removes content of the share

Removing Video share only can be done by context menu.

Unfortunately this key is not mapped for the ATIREMOTE, so you have to add it (key name is KEY_INFO)

For example rename KEY_D or whatever key you want to KEY_INFO
Here is micro howto how to map Context Menu function to KEY_D:

Please insert line <title>KEY_D</title> into file /home/xbian/.kodi/userdata/Lircmap.xml

Code:
....
                <start>KEY_HOME</start>
                <recordedtv>KEY_RECORDEDTV</recordedtv>
                <title>KEY_D</title>
        </remote>
</lircmap>

and leave file x10-atiwonder.conf untouched (forget my previous posting)

Finally restart Kodi
It works perfectly. You are wonderful!

I've also seen yesterday the update of the lirc package. It installed clean files. This remote will now work out of the box, when the proper parameter is set in /etc/default/lirc

Thank you again.
FYI: I built xbian-package-lirc today again, because file /etc/default/lirc was not update resistant
Thank you very much.
This key is very useful

following the spirit of your howto I've added the line

<start>KEY_A</start>

So the A key is no longer useless.

By the way, are there any functions of interest that are not mapped? The B key is free. Wink
Reference URL's