Starting an application under X

Here for general support for H series TVs, request and problem solve area.

lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Starting an application under X

Post by lbalan79 »

Ok. Because it looks that fas part of this pdf a new version of X / gnome is installed. With my limited understanding this chroots into the new ubuntu installation where a new version of X would be present. As a result it is obvious that the drivers would not work.
Finally, it?s time to install our desktop environment, here you can choose between a large variety and flavors, I?ve tested both the original Gnome (now Unity), and the Lightweight X11 Desktop Environment. I can tell Unity works better in my case so let?s go for it: o root@(none):/# apt-get install ubuntu-desktop 2> /error.log The installation of the desktop may take more than an hour, it will install all gnome tools (text editor, graphic terminal, calculators, some game?), drivers, make some configurations, etc? This is why I redirect the error stream to a file, so I can check is something went wrong more easily.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Starting an application under X

Post by sectroyer »

NOPE. It uses EXISTING X but new gnome. The drivers don't work because we use EXISTING X :) Existing X has no driver support :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Starting an application under X

Post by lbalan79 »

sectroyer wrote:NOPE. It uses EXISTING X but new gnome. The drivers don't work because we use EXISTING X :) Existing X has no driver support :)
If existing X has no driver support how does the sound and remote works in HUB (exeAPP)? Also I have Need for Speed running so that must have some kind of audio support.

Thank you
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Starting an application under X

Post by sectroyer »

lbalan79 wrote:
sectroyer wrote:NOPE. It uses EXISTING X but new gnome. The drivers don't work because we use EXISTING X :) Existing X has no driver support :)
If existing X has no driver support how does the sound and remote works in HUB (exeAPP)? Also I have Need for Speed running so that must have some kind of audio support.

Thank you
"Drivers" are IN exeAPP/exeTV NO STANDARD X app can access them !!! Besides start reading more:P X NEVER had ANY sound drivers :P They are either in kernel (NOT ON TV) or handled by each app separately (line on TV). So if you write your own app you have to write your own sound handling :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Starting an application under X

Post by lbalan79 »

You are right. They seem to use SDL for the basic applications. The kernel drivers should work work fine under X as well. Well... I am too much of a noob in this area.
GAME_LIB/libSDL.so
https://www.libsdl.org/ .

But getting back to the main topic is there anyway to open for example a shell under X directly from command line without chroot into ubuntu and installing gnome?

Thank you
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Starting an application under X

Post by sectroyer »

lbalan79 wrote:You are right. They seem to use SDL for the basic applications. The kernel drivers should work work fine under X as well.
Yes but there are NO sound kernel drivers :D Samsung is talking directly to hardware using their proprietary API :)
lbalan79 wrote: But getting back to the main topic is there anyway to open for example a shell under X directly from command line without chroot into ubuntu and installing gnome?
I don't understand a question and I don't understand where do you want to get with this discussion :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Starting an application under X

Post by lbalan79 »

sectroyer wrote: Yes but there are NO sound kernel drivers :D Samsung is talking directly to hardware using their proprietary API :)
You probably are right for exeAPP I find imports for the Audio methods. SDL however uses the kernel drivers:

Code: Select all

# lsmod | grep snd
snd_usb_audio 82460 1 - Live 0xbf065000
snd_usbmidi_lib 13212 1 snd_usb_audio, Live 0xbf060000
snd_pcm 51832 2 snd_usb_audio, Live 0xbee1b000
snd_page_alloc 2732 1 snd_pcm, Live 0xbee17000
snd_hwdep 3808 1 snd_usb_audio, Live 0xbee13000
snd_rawmidi 12992 1 snd_usbmidi_lib, Live 0xbee0c000
snd_seq_device 3616 1 snd_rawmidi, Live 0xbee08000
snd_timer 13668 1 snd_pcm, Live 0xbee01000
snd 28732 8 snd_usb_audio,snd_usbmidi_lib,snd_pcm,snd_hwdep,snd_rawmidi,snd_seq_device,snd_timer, Live 0xbeddf000
soundcore 468 1 snd, Live 0xbeddb000
usbcore 110852 13 dummy_hcd,usb_storage,snd_usb_audio,snd_usbmidi_lib,usbhid,btusb,uvcvideo,bcm_dbus,xhci_hcd,ohci_hcd,ehci_hcd, Live 0xbe522000

Code: Select all

Address          Ordinal Name                                                                                                           Library
-------          ------- ----                                                                                                           -------
0000000002553DE4         _Z14SdAudioDec_Set12SdAudDecID_kP21SdAudioDec_Settings_t12SdMainChip_k                                                
0000000002553E18         _Z17SdAVEnc_AudioMute11SdAVEncId_ki12SdMainChip_k                                                                     
0000000002553E30         _Z16SdAudioDec_Start12SdAudDecID_k12SdMainChip_k                                                                      
0000000002553E3C         _Z17SdAVEnc_AudioStop11SdAVEncId_k12SdMainChip_k                                                                      
0000000002553F30         _Z18SdAudioDec_Connect12SdAudDecID_k16SdDecInputType_kj12SdMainChip_k                                                 
0000000002553F6C         _Z21SdSound_AudioOutFlush11SdSoundID_k12SdMainChip_k                                                                  
0000000002553F7C         _Z19SdExtOut_AudioStart12SdExtOutID_k12SdMainChip_k                                                                   
0000000002553F98         _Z23SdSound_initAudioStream11SdSoundID_k12SdMainChip_k                                                                
0000000002553FCC         _Z30SdPostSoundTV_SetPersonalAudioi29SdPostSoundTV_PersonalAudio_t12SdMainChip_k                                      
0000000002554084         _Z17SdAudioDec_Resume12SdAudDecID_k12SdMainChip_k                                                                     
00000000025540BC         _Z16SdAudioDec_Pause12SdAudDecID_k12SdMainChip_k                                                                      
0000000002554114         _Z29SdAudioDec_SetAudioStreamInfo12SdAudDecID_kP23SdAudioDec_StreamInfo_t12SdMainChip_k                               
000000000255414C         _Z27SdSound_SetDelayAudioStream11SdSoundID_ki12SdMainChip_k                                                           
0000000002554168         _Z23SdSound_StopAudioStream11SdSoundID_k12SdMainChip_k                                                                
0000000002554174         _Z29SdAudioDec_GetAudioStreamInfo12SdAudDecID_kP23SdAudioDec_StreamInfo_t12SdMainChip_k                               
0000000002554180         _Z22SdAudioDec_DecodeFrame12SdAudDecID_kP18SdAudioDec_Input_tP19SdAudioDec_Output_t12SdMainChip_k                     
00000000025541CC         _Z16SdAudioDec_Flush12SdAudDecID_k12SdMainChip_k                                                                      
000000000255425C         _Z23SdAVEnc_AudioDisconnect11SdAVEncId_k12SdMainChip_k                                                                
00000000025542F8         _Z18SdExtOut_AudioMute12SdExtOutID_ki12SdMainChip_k                                                                   
0000000002554378         _Z30SdAVEnc_InstallAudioESCallback11SdAVEncId_kPFvP18SdAVEnc_TsEsInfo_tjEj12SdMainChip_k                              
000000000255438C         _Z24SdExtOut_AudioDisconnect12SdExtOutID_k12SdMainChip_k                                                              
00000000025543A0         _Z28SdSound_SetAudioStreamVolume11SdSoundID_ki12SdMainChip_k                                                          
00000000025543BC         _Z25SdAudioDec_SetDecodingMix12SdAudDecID_kP29SdAudioDec_ChannelMixConfig_t12SdMainChip_k                             
00000000025543C8         _Z23SdAudioDec_FreeResource12SdAudDecID_kP21SdAudioPfmFrameData_t12SdMainChip_k                                       
000000000255444C         _Z17SdExtOut_SetAudio12SdExtOutID_kP25SdExtOut_Audio_Settings_t12SdMainChip_k                                         
00000000025544D8         _Z21SdAVEnc_SubmitAudioES11SdAVEncId_kP18SdAVEnc_TsEsInfo_t12SdMainChip_k                                             
00000000025545A0         _Z33SdAudioDec_FreeConvertedFrameData12SdAudDecID_kP24SdAudioCommonFrameData_t12SdMainChip_k                          
00000000025545A8         _Z22SdSound_AudioCmnOutput11SdSoundID_kP24SdAudioCommonFrameData_t12SdMainChip_k                                      
00000000025545F8         _Z22SdSound_AudioPfmOutput11SdSoundID_kP21SdAudioPfmFrameData_t12SdMainChip_k                                         
0000000002554634         _Z25SdAudioDec_GetAudioStatus12SdAudDecID_kmP19SdAudioDec_Status_t12SdMainChip_k                                      
0000000002554664         _Z24SdSound_StartAudioStream11SdSoundID_k12SdMainChip_k                                                               
000000000255467C         _Z14SdAudioDec_Get12SdAudDecID_kP21SdAudioDec_Settings_t12SdMainChip_k                                                
0000000002554688         _Z15SdAudioDec_Stop12SdAudDecID_k12SdMainChip_k                                                                       
0000000002554744         _Z17SdExtOut_GetAudio12SdExtOutID_kP25SdExtOut_Audio_Settings_t12SdMainChip_k                                         
0000000002554754         _Z18SdExtOut_AudioStop12SdExtOutID_k12SdMainChip_k                                                                    
0000000002554760         _Z25SdAudioDec_GetDecodingMix12SdAudDecID_kP29SdAudioDec_ChannelMixConfig_t12SdMainChip_k                             
000000000255477C         _Z18SdAudioDec_Connect12SdAudDecID_k11SdExtInID_k12SdMainChip_k                                                       
00000000025547E0         _Z27SdAudioDec_ConvertFrameData12SdAudDecID_kP21SdAudioPfmFrameData_tP24SdAudioCommonFrameData_t12SdMainChip_k        
0000000002554814         _Z27SdSound_SetSampleRateSystem15SdAudioFsRate_k                                                                      
000000000255483C         _Z21SdExtOut_AudioConnect12SdExtOutID_k10SdSource_k11SdSoundID_k12SdMainChip_k                                        
0000000002554874         _Z20SdAVEnc_AudioConnect11SdAVEncId_k10SdSource_k11SdSoundID_k13SdAVEnc_Out_k12SdMainChip_k                           
000000000255496C         _Z26SdSound_SetMuteAudioStream11SdSoundID_kb12SdMainChip_k                                                            
00000000025549A8         _Z28SdSound_SetAudioStreamFormat11SdSoundID_kbb12SdMainChip_k                                                         
00000000025549C4         _Z15SdAudioDec_Init12SdAudDecID_k12SdMainChip_k                                                                       
00000000025549F4         _Z21SdAudioDec_Disconnect12SdAudDecID_k12SdMainChip_k                                                                 
0000000002554B40         _Z18SdAVEnc_AudioStart11SdAVEncId_k12SdMainChip_k                                                                     
0000000002554BBC         _Z20SdAudioDec_StepFlush12SdAudDecID_ky12SdMainChip_k                                                                 
I don't understand a question and I don't understand where do you want to get with this discussion :)
I just want to start an X application using the same xorg.conf and settings as on the screen. I don' tneed window decorations or anything fancy as gnome or kde have. The final goal is to put a mame emulator on the tv but that is a far fetched goal so I am taking it baby steps and hopefully learn a thing or two in the process.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Starting an application under X

Post by sectroyer »

lbalan79 wrote: I just want to start an X application using the same xorg.conf and settings as on the screen. I don' tneed window decorations or anything fancy as gnome or kde have. The final goal is to put a mame emulator on the tv but that is a far fetched goal so I am taking it baby steps and hopefully learn a thing or two in the process.
Well it doesn't matter since you have two main obstacles:
1) How to get to sound
2) How to get any input .
By default X applications DO NOT receive ANY input :) exe* have compiled in custom "drivers" NOT usable by any other X app :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Starting an application under X

Post by lbalan79 »

sectroyer wrote:
lbalan79 wrote: I just want to start an X application using the same xorg.conf and settings as on the screen. I don' tneed window decorations or anything fancy as gnome or kde have. The final goal is to put a mame emulator on the tv but that is a far fetched goal so I am taking it baby steps and hopefully learn a thing or two in the process.
Well it doesn't matter since you have two main obstacles:
1) How to get to sound
2) How to get any input .
By default X applications DO NOT receive ANY input :) exe* have compiled in custom "drivers" NOT usable by any other X app :)
Right. But I am not even getting a normal terminal to start up under the current screen. So trying to get that going first. Sound and controls is second priority now. So my issue now is how to get a simple xterm application to display without chrooting.

Thank you,
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Starting an application under X

Post by sectroyer »

lbalan79 wrote: Right. But I am not even getting a normal terminal to start up under the current screen. So trying to get that going first. Sound and controls is second priority now. So my issue now is how to get a simple xterm application to display without chrooting.
Ahh so for you "normal terminal to start up under the current screen" is xterm :) Did you compile xterm yourself using TVs toolchain and libs ? :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

Post Reply

Return to “[H] Support”