Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Chrontel 7036 chip driver for ubuntu

  1. #11
    Join Date
    Mar 2010
    Beans
    27

    Re: Chrontel 7036 chip driver for ubuntu

    Quote Originally Posted by daniel-holz91 View Post
    Yeah, I had my problems with this patch too so I tried to apply it manually with Gedit and it worked.
    I never thought of doing that. I think I may give that a try.

    Quote Originally Posted by daniel-holz91 View Post
    And sorry if my english sucks. ^^
    It's better than my deutsch!. My Great-Grandfather was from Deutschland (my name is Schmidt). I didn't go to a church, I went to a Kirche. But, I only know a few swear words in deutsch.

    Anyway, if you have any trouble installing the CrystalHD driver, I can help with that. There is a patch for that driver too.
    Last edited by waterhead; January 11th, 2014 at 12:20 AM.

  2. #12
    Join Date
    Aug 2013
    Beans
    22

    Re: Chrontel 7036 chip driver for ubuntu

    Quote Originally Posted by waterhead View Post
    I never thought of doing that. I think I may give that a try.
    You can do that but the patch on my blog should do the same. If you save time you could try this compiled and patched driver. http://ubuntuone.com/05i4CLB81NmOy8CucxyZL5
    Quote Originally Posted by waterhead View Post
    It's better than my deutsch!. My Great-Grandfather was from Deutschland (my name is Schmidt). I didn't go to a church, I went to a Kirche. But, I only know a few swear words in deutsch.
    Yeah Schmidt is very, very, very, very german. It's the german Smith.
    Quote Originally Posted by waterhead View Post
    Anyway, if you have any trouble installing the CrystalHD driver, I can help with that. There is a patch for that driver too.
    Thanks but I only have the cheap version of the WeTab which lacks the CrystalHD. But I already found a way to play hd-videos without it.

  3. #13
    Join Date
    Mar 2010
    Beans
    27

    Re: Chrontel 7036 chip driver for ubuntu

    I wanted to get this to work on 13.10 before trying it on 14.04. I first tried manually adding the WeTab patch. But when I compiled it I got an error. So I then just applied the patch from daniel-holz91. I also had to make the ch7036_start file executable before it would work.

    The picture is a bit fuzzy, but I didn't yet try to make any adjustments via the config file.

    Next I'll try it on Ubuntu 14.04.

  4. #14
    Join Date
    Aug 2013
    Beans
    22

    Re: Chrontel 7036 chip driver for ubuntu

    Yeah for some reasons the daemon gets no EDID-information from the external screen and reduces its resolution to 480p. With the correct "-E" parameter it should display at least 1366x768. What I still not got working is to get it autostarting. fstab didn't work (boot time increased dramaticly, daemon didn't start) and starting it through lightDM caused a black screen.

  5. #15
    Join Date
    Mar 2010
    Beans
    27

    Re: Chrontel 7036 chip driver for ubuntu

    I've worked out most of the problems of the original patch provided by sven-ola on the WeTab Forums. The patch is formatted incorrectly, maybe by the forum software. Here is the patch that seems to work (saved as chrontel.patch):

    Code:
    diff --git a/Makefile b/Makefile
    index 3a5936d..b7a8df3 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -20,11 +20,11 @@ all: $(MON) $(BUG)
         $(CC) $(CCFLAGS) $(INCLUDE_DIRS) -c $< -o $@
    
     $(MON): $(OBJECTS) $(MON).o
    -    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
    +    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $^ $(LIB_DIRS) $(LIBS) $(LDFLAGS) \
                     -o $@
    
     $(BUG): $(OBJECTS) $(BUG).o
    -    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
    +    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $^ $(LIB_DIRS) $(LIBS) $(LDFLAGS) \
                     -o $@
    
     clean:
    diff --git a/ch7036_monitor.c b/ch7036_monitor.c
    index 5cfcc2d..ecf2d90 100644
    --- a/ch7036_monitor.c
    +++ b/ch7036_monitor.c
    @@ -762,6 +762,7 @@ int init_lcd_timing(struct timing_ch7036 *lcd_timing, int *width_fix,
       lcd_timing->vo = xmode->vSyncStart - xmode->height;
       lcd_timing->vw = xmode->vSyncEnd - xmode->vSyncStart;
       lcd_timing->scale = MK_SCALE(0, 0);
    +  return 0;
     }
    I place it in my home directory, and run all my terminal commands from there too:

    Code:
    git clone http://git.chromium.org/chromiumos/third_party/chrontel.git
    Code:
    cd chrontel
    Code:
    git checkout 697c6bd5237fa800c314153779624187a9c4e0e6
    Code:
    patch -p1 < ~/chrontel.patch
    I do get this output, so I haven't actually tried to compile it yet.

    Code:
    $ patch -p1 < ~/chrontel.patch
    patching file Makefile
    Hunk #1 succeeded at 20 with fuzz 1.
    patching file ch7036_monitor.c
    I don't know what the 'fuzz 1' is, but most likely more formatting errors.

    EDIT: I worked out the problem, and don't get patch errors any more. I updated the posted patch.
    Last edited by waterhead; January 12th, 2014 at 10:35 PM.

  6. #16
    Join Date
    Mar 2010
    Beans
    27

    Re: Chrontel 7036 chip driver for ubuntu

    I have been working on this patch on my desktop, with Fedora 20 installed. After patching the source, I could not build it without getting this error:

    Code:
    $ make
    cc -Wall -Werror  -c ch7036_monitor.c -o ch7036_monitor.o
    ch7036_monitor.c: In function ‘main’:
    ch7036_monitor.c:1017:20: error: ‘width_fix’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         init_lcd_timing(&lcd_timing, width_fix, xmode);
                        ^
    cc1: all warnings being treated as errors
    make: *** [ch7036_monitor.o] Error 1
    It was previously reported in this Google Group post:

    http://code.google.com/p/chromium/is...tail?id=215604

    And fixed with these two patches:

    Code:
    --- ch7036_monitor.c
    +++ ch7036_monitor.c
    @@ -737,7 +737,7 @@
       return 0;
     }
     
    -int init_lcd_timing(struct timing_ch7036 *lcd_timing, int *width_fix,
    +void init_lcd_timing(struct timing_ch7036 *lcd_timing, int *width_fix,
                         XRRModeInfo *xmode)
     {
       if ((xmode->width == 1366) && (xmode->height == 768)) {
    @@ -785,7 +785,7 @@
       int probe_only = 0;
       int dummy_i2c = 0;
       int verbose = 0;
    -  int *width_fix;
    +  int *width_fix = NULL;
       unsigned char edid[256];
       unsigned char newedid[256];
       int use_new_edid = 0;
    Code:
    --- Makefile
    +++ Makefile
    @@ -20,11 +20,11 @@
         $(CC) $(CCFLAGS) $(INCLUDE_DIRS) -c $< -o $@
     
     $(MON): $(OBJECTS) $(MON).o
    -    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
    +    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $^ $(LDFLAGS) $(LIB_DIRS) $(LIBS) \
                     -o $@
     
     $(BUG): $(OBJECTS) $(BUG).o
    -    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $(LIB_DIRS) $^ $(LIBS) $(LDFLAGS) \
    +    $(CC) $(CCFLAGS) $(INCLUDE_DIRS) $^ $(LDFLAGS) $(LIB_DIRS) $(LIBS) \
                     -o $@
     
     clean:
    I had to apply these two patches (I manually edited the files), and then I was able to compile it on Fedora 20 too. I am posting it here in case others also run into this problem.
    Last edited by waterhead; January 13th, 2014 at 01:15 AM.

  7. #17
    Join Date
    Aug 2013
    Beans
    22

    Re: Chrontel 7036 chip driver for ubuntu

    Today I got the recent version of the Chromium OS Ch7036 driver to work under Ubuntu. I just applied the patch from the WeTab-forum, swapped audio_utils.c and audio_utils.h against the ones from the old version and copied edid_utils.c and edid_utils.h from the old version into the chrontel folder of the recent version. For my suprise I could actually compile and use this patchwork-driver. I call it the Franken-Chrontel.

    You can find my updated guide here: http://lackofalucidmind-en.blogspot....mi-output.html

    The only thing we need now is a package and a PPA. I was able to create the first one but it would only copy the files to the correct places. It wouldn't make the necessary changes to /etc/modules and without that the driver doesn't work.
    I failed with the PPA because I have no idea how to convert this hole bunch of files into a source package.


    To the new version:
    There weren't many changes since the old version.

  8. #18
    Join Date
    Aug 2013
    Beans
    22

    Re: Chrontel 7036 chip driver for ubuntu

    Because there are still some problems caused by the missing Edid-detection of the chrontel driver I kept searching for other solutions and found this https://build.merproject.org/package...e%3Adevel%3Aux

    It seems like the Mer project has it's own fork of this driver which contains the files ediddata.cpp and ediddata.h. Maybe it works better but I get errors when I try to compile it.

    Edit: Well I got it somewhat working but still no Edid detection and because this older driver has no fallback mode for this case it just doesn't do anything.
    Last edited by daniel-holz91; February 1st, 2014 at 09:20 PM.

  9. #19
    Join Date
    Mar 2010
    Beans
    27

    Re: Chrontel 7036 chip driver for ubuntu

    I have Fedora installed on my Desktop PC. I downloaded the Mer .rpm file, and was able to install it without any errors. It has these files:

    /etc/dbus-1/system.d/com.tiitoo.HDMI.conf
    /etc/modprobe.d/chrontel_i2c.conf
    /etc/udev/rules.d/10-kernel-chrontel.rules
    /etc/xdg/autostart/tiitoo-hdmi.desktop
    /lib/firmware/chrontel/fw7036.bin
    /usr/bin/tiitoo-hdmi-daemon
    /usr/bin/tiitoo-hdmi.sh

    To run it, use this command:

    tiitoo-hdmi.sh startup

    I don't have Fedora installed on my tablet, but I may give it a try.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •