 PURPOSE: This phase I trial is studying the side effects and best dose of panobinostat when given together with sorafenib in treating patients with liver cancer that is metastatic andor cannot be removed by surgery. 